Compare commits
2
Commits
4d5caac8d8
...
9775125107
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9775125107 | ||
|
|
56f8e3d878 |
No files matched your search
@@ -9,15 +9,15 @@ edits. **Credentials are always injected — never hardcoded.**
|
|||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```
|
||||||
aioproxies @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v1.0.0
|
aioproxies @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v1.1.1
|
||||||
# network helpers (current_ip / reset) need the extra:
|
# network helpers (current_ip / reset) need the extra:
|
||||||
aioproxies[net] @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v1.0.0
|
aioproxies[net] @ git+ssh://git@git.rethinkstudios.io/rethink-public/aioproxies.git@v1.1.1
|
||||||
```
|
```
|
||||||
|
|
||||||
The core has no dependencies. The `net` extra adds `aiohttp` for `current_ip` /
|
The core has no dependencies. The `net` extra adds `aiohttp` for `current_ip` /
|
||||||
`reset`.
|
`reset`.
|
||||||
|
|
||||||
Drop the `@v1.0.0` suffix from the line above to install the latest unpinned.
|
Drop the `@v1.1.1` suffix from the line above to install the latest unpinned.
|
||||||
|
|
||||||
## Formatting
|
## Formatting
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "aioproxies"
|
name = "aioproxies"
|
||||||
version = "1.1.0"
|
version = "1.1.1"
|
||||||
description = "proxy parsing, formatting, health, and pool management for aiohttp/aioweb, camoufox, and socks5"
|
description = "proxy parsing, formatting, health, and pool management for aiohttp/aioweb, camoufox, and socks5"
|
||||||
requires-python = ">=3.10"
|
requires-python = ">=3.10"
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|||||||
@@ -173,6 +173,8 @@ class AioProxies:
|
|||||||
if self._available(state["timeout"], now):
|
if self._available(state["timeout"], now):
|
||||||
fine.append(idx)
|
fine.append(idx)
|
||||||
self._clear_stale_burn(state)
|
self._clear_stale_burn(state)
|
||||||
|
# only the first available proxy is used; scanning on is O(pool) per call
|
||||||
|
break
|
||||||
|
|
||||||
if fine:
|
if fine:
|
||||||
chosen = fine[0]
|
chosen = fine[0]
|
||||||
|
|||||||
Reference in new issue
Block a user