proxyhubb 0.3.0__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/LICENSE +21 -21
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/PKG-INFO +70 -70
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/README.md +50 -50
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb/__init__.py +24 -24
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb/client.py +511 -453
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb/proxy.py +59 -59
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb.egg-info/PKG-INFO +70 -70
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb.egg-info/SOURCES.txt +2 -1
- proxyhubb-0.3.1/proxyhubb.egg-info/requires.txt +2 -0
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/pyproject.toml +30 -30
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/setup.cfg +4 -4
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/tests/test_client.py +153 -153
- proxyhubb-0.3.1/tests/test_depin.py +33 -0
- proxyhubb-0.3.0/proxyhubb.egg-info/requires.txt +0 -2
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb.egg-info/dependency_links.txt +0 -0
- {proxyhubb-0.3.0 → proxyhubb-0.3.1}/proxyhubb.egg-info/top_level.txt +0 -0
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 ProxyHubb
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 ProxyHubb
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: proxyhubb
|
|
3
|
-
Version: 0.3.
|
|
4
|
-
Summary: Official Python SDK for ProxyHubb (buyer Connect/bulk + seller/provider APIs)
|
|
5
|
-
Author: ProxyHubb
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://proxyhubb.com
|
|
8
|
-
Project-URL: Repository, https://github.com/proxyhubb/proxyhubb
|
|
9
|
-
Project-URL: Issues, https://github.com/proxyhubb/proxyhubb/issues
|
|
10
|
-
Keywords: proxyhubb,proxy,sdk,api
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
-
Classifier: Operating System :: OS Independent
|
|
14
|
-
Requires-Python: >=3.9
|
|
15
|
-
Description-Content-Type: text/markdown
|
|
16
|
-
License-File: LICENSE
|
|
17
|
-
Requires-Dist: requests>=2.
|
|
18
|
-
Requires-Dist: urllib3>=2.0.
|
|
19
|
-
Dynamic: license-file
|
|
20
|
-
|
|
21
|
-
# proxyhubb
|
|
22
|
-
|
|
23
|
-
Official Python client for ProxyHubb Connect (session intents), marketplace credentials, and bulk pools.
|
|
24
|
-
|
|
25
|
-
## Install
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pip install proxyhubb
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Auth
|
|
32
|
-
|
|
33
|
-
- **API key** (`phub_…`): bulk pools — `X-API-Key`
|
|
34
|
-
- **JWT** (dashboard): session intents + order credentials — `Authorization: Bearer`
|
|
35
|
-
|
|
36
|
-
## Quick start — Connect (rotating / sticky)
|
|
37
|
-
|
|
38
|
-
```python
|
|
39
|
-
from proxyhubb import ProxyHubClient, session_intent_proxy_url
|
|
40
|
-
import requests
|
|
41
|
-
|
|
42
|
-
client = ProxyHubClient(access_token="eyJ...") # dashboard JWT
|
|
43
|
-
intent = client.create_session_intent("rotating", target_geo="US")
|
|
44
|
-
proxies = client.as_requests_proxy_from_intent(intent["token"])
|
|
45
|
-
print(requests.get("https://httpbin.org/ip", proxies=proxies).json())
|
|
46
|
-
|
|
47
|
-
# or curl:
|
|
48
|
-
# curl -x "http://session-intent:TOKEN@proxy.proxyhubb.com:8090" https://httpbin.org/ip
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
## Marketplace credentials
|
|
52
|
-
|
|
53
|
-
```python
|
|
54
|
-
creds = client.get_order_credentials("ORDER_UUID")
|
|
55
|
-
proxies = client.as_requests_proxy_from_credentials(creds)
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Bulk pools
|
|
59
|
-
|
|
60
|
-
```python
|
|
61
|
-
client = ProxyHubClient("phub_...")
|
|
62
|
-
pool = client.create_pool("scrapers", size=5)
|
|
63
|
-
proxies = client.as_requests_proxy(pool["id"])
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
Buyer proxy is HTTP CONNECT / SOCKS5 (`proxy.proxyhubb.com:8090`). See [docs/buyer-proxy.md](../../docs/buyer-proxy.md).
|
|
67
|
-
|
|
68
|
-
## License
|
|
69
|
-
|
|
70
|
-
MIT
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: proxyhubb
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Official Python SDK for ProxyHubb (buyer Connect/bulk + seller/provider APIs)
|
|
5
|
+
Author: ProxyHubb
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://proxyhubb.com
|
|
8
|
+
Project-URL: Repository, https://github.com/proxyhubb/proxyhubb
|
|
9
|
+
Project-URL: Issues, https://github.com/proxyhubb/proxyhubb/issues
|
|
10
|
+
Keywords: proxyhubb,proxy,sdk,api
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Requires-Python: >=3.9
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: requests>=2.32.0
|
|
18
|
+
Requires-Dist: urllib3>=2.0.7
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
|
|
21
|
+
# proxyhubb
|
|
22
|
+
|
|
23
|
+
Official Python client for ProxyHubb Connect (session intents), marketplace credentials, and bulk pools.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install proxyhubb
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Auth
|
|
32
|
+
|
|
33
|
+
- **API key** (`phub_…`): bulk pools — `X-API-Key`
|
|
34
|
+
- **JWT** (dashboard): session intents + order credentials — `Authorization: Bearer`
|
|
35
|
+
|
|
36
|
+
## Quick start — Connect (rotating / sticky)
|
|
37
|
+
|
|
38
|
+
```python
|
|
39
|
+
from proxyhubb import ProxyHubClient, session_intent_proxy_url
|
|
40
|
+
import requests
|
|
41
|
+
|
|
42
|
+
client = ProxyHubClient(access_token="eyJ...") # dashboard JWT
|
|
43
|
+
intent = client.create_session_intent("rotating", target_geo="US")
|
|
44
|
+
proxies = client.as_requests_proxy_from_intent(intent["token"])
|
|
45
|
+
print(requests.get("https://httpbin.org/ip", proxies=proxies).json())
|
|
46
|
+
|
|
47
|
+
# or curl:
|
|
48
|
+
# curl -x "http://session-intent:TOKEN@proxy.proxyhubb.com:8090" https://httpbin.org/ip
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Marketplace credentials
|
|
52
|
+
|
|
53
|
+
```python
|
|
54
|
+
creds = client.get_order_credentials("ORDER_UUID")
|
|
55
|
+
proxies = client.as_requests_proxy_from_credentials(creds)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Bulk pools
|
|
59
|
+
|
|
60
|
+
```python
|
|
61
|
+
client = ProxyHubClient("phub_...")
|
|
62
|
+
pool = client.create_pool("scrapers", size=5)
|
|
63
|
+
proxies = client.as_requests_proxy(pool["id"])
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Buyer proxy is HTTP CONNECT / SOCKS5 (`proxy.proxyhubb.com:8090`). See [docs/buyer-proxy.md](../../docs/buyer-proxy.md).
|
|
67
|
+
|
|
68
|
+
## License
|
|
69
|
+
|
|
70
|
+
MIT
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
# proxyhubb
|
|
2
|
-
|
|
3
|
-
Official Python client for ProxyHubb Connect (session intents), marketplace credentials, and bulk pools.
|
|
4
|
-
|
|
5
|
-
## Install
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
pip install proxyhubb
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Auth
|
|
12
|
-
|
|
13
|
-
- **API key** (`phub_…`): bulk pools — `X-API-Key`
|
|
14
|
-
- **JWT** (dashboard): session intents + order credentials — `Authorization: Bearer`
|
|
15
|
-
|
|
16
|
-
## Quick start — Connect (rotating / sticky)
|
|
17
|
-
|
|
18
|
-
```python
|
|
19
|
-
from proxyhubb import ProxyHubClient, session_intent_proxy_url
|
|
20
|
-
import requests
|
|
21
|
-
|
|
22
|
-
client = ProxyHubClient(access_token="eyJ...") # dashboard JWT
|
|
23
|
-
intent = client.create_session_intent("rotating", target_geo="US")
|
|
24
|
-
proxies = client.as_requests_proxy_from_intent(intent["token"])
|
|
25
|
-
print(requests.get("https://httpbin.org/ip", proxies=proxies).json())
|
|
26
|
-
|
|
27
|
-
# or curl:
|
|
28
|
-
# curl -x "http://session-intent:TOKEN@proxy.proxyhubb.com:8090" https://httpbin.org/ip
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Marketplace credentials
|
|
32
|
-
|
|
33
|
-
```python
|
|
34
|
-
creds = client.get_order_credentials("ORDER_UUID")
|
|
35
|
-
proxies = client.as_requests_proxy_from_credentials(creds)
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Bulk pools
|
|
39
|
-
|
|
40
|
-
```python
|
|
41
|
-
client = ProxyHubClient("phub_...")
|
|
42
|
-
pool = client.create_pool("scrapers", size=5)
|
|
43
|
-
proxies = client.as_requests_proxy(pool["id"])
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
Buyer proxy is HTTP CONNECT / SOCKS5 (`proxy.proxyhubb.com:8090`). See [docs/buyer-proxy.md](../../docs/buyer-proxy.md).
|
|
47
|
-
|
|
48
|
-
## License
|
|
49
|
-
|
|
50
|
-
MIT
|
|
1
|
+
# proxyhubb
|
|
2
|
+
|
|
3
|
+
Official Python client for ProxyHubb Connect (session intents), marketplace credentials, and bulk pools.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install proxyhubb
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Auth
|
|
12
|
+
|
|
13
|
+
- **API key** (`phub_…`): bulk pools — `X-API-Key`
|
|
14
|
+
- **JWT** (dashboard): session intents + order credentials — `Authorization: Bearer`
|
|
15
|
+
|
|
16
|
+
## Quick start — Connect (rotating / sticky)
|
|
17
|
+
|
|
18
|
+
```python
|
|
19
|
+
from proxyhubb import ProxyHubClient, session_intent_proxy_url
|
|
20
|
+
import requests
|
|
21
|
+
|
|
22
|
+
client = ProxyHubClient(access_token="eyJ...") # dashboard JWT
|
|
23
|
+
intent = client.create_session_intent("rotating", target_geo="US")
|
|
24
|
+
proxies = client.as_requests_proxy_from_intent(intent["token"])
|
|
25
|
+
print(requests.get("https://httpbin.org/ip", proxies=proxies).json())
|
|
26
|
+
|
|
27
|
+
# or curl:
|
|
28
|
+
# curl -x "http://session-intent:TOKEN@proxy.proxyhubb.com:8090" https://httpbin.org/ip
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Marketplace credentials
|
|
32
|
+
|
|
33
|
+
```python
|
|
34
|
+
creds = client.get_order_credentials("ORDER_UUID")
|
|
35
|
+
proxies = client.as_requests_proxy_from_credentials(creds)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Bulk pools
|
|
39
|
+
|
|
40
|
+
```python
|
|
41
|
+
client = ProxyHubClient("phub_...")
|
|
42
|
+
pool = client.create_pool("scrapers", size=5)
|
|
43
|
+
proxies = client.as_requests_proxy(pool["id"])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Buyer proxy is HTTP CONNECT / SOCKS5 (`proxy.proxyhubb.com:8090`). See [docs/buyer-proxy.md](../../docs/buyer-proxy.md).
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
MIT
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
"""Official ProxyHubb Python SDK."""
|
|
2
|
-
|
|
3
|
-
from proxyhubb.client import (
|
|
4
|
-
DEFAULT_BASE_URL,
|
|
5
|
-
DEFAULT_PROXY_ENDPOINT,
|
|
6
|
-
ProxyHubClient,
|
|
7
|
-
as_requests_proxies,
|
|
8
|
-
default_proxy_endpoint,
|
|
9
|
-
proxy_url,
|
|
10
|
-
session_intent_proxy_url,
|
|
11
|
-
)
|
|
12
|
-
from proxyhubb.proxy import ProxyClient
|
|
13
|
-
|
|
14
|
-
__all__ = [
|
|
15
|
-
"ProxyHubClient",
|
|
16
|
-
"ProxyClient",
|
|
17
|
-
"DEFAULT_BASE_URL",
|
|
18
|
-
"DEFAULT_PROXY_ENDPOINT",
|
|
19
|
-
"as_requests_proxies",
|
|
20
|
-
"default_proxy_endpoint",
|
|
21
|
-
"proxy_url",
|
|
22
|
-
"session_intent_proxy_url",
|
|
23
|
-
]
|
|
24
|
-
__version__ = "0.3.
|
|
1
|
+
"""Official ProxyHubb Python SDK."""
|
|
2
|
+
|
|
3
|
+
from proxyhubb.client import (
|
|
4
|
+
DEFAULT_BASE_URL,
|
|
5
|
+
DEFAULT_PROXY_ENDPOINT,
|
|
6
|
+
ProxyHubClient,
|
|
7
|
+
as_requests_proxies,
|
|
8
|
+
default_proxy_endpoint,
|
|
9
|
+
proxy_url,
|
|
10
|
+
session_intent_proxy_url,
|
|
11
|
+
)
|
|
12
|
+
from proxyhubb.proxy import ProxyClient
|
|
13
|
+
|
|
14
|
+
__all__ = [
|
|
15
|
+
"ProxyHubClient",
|
|
16
|
+
"ProxyClient",
|
|
17
|
+
"DEFAULT_BASE_URL",
|
|
18
|
+
"DEFAULT_PROXY_ENDPOINT",
|
|
19
|
+
"as_requests_proxies",
|
|
20
|
+
"default_proxy_endpoint",
|
|
21
|
+
"proxy_url",
|
|
22
|
+
"session_intent_proxy_url",
|
|
23
|
+
]
|
|
24
|
+
__version__ = "0.3.1"
|