HTTP proxy library for Python using CroxyProxy infrastructure
Project description
proxly
HTTP proxy library for Python using CroxyProxy infrastructure.
Installation
pip install proxly
Usage
import proxly
# Simple usage
response = proxly.get("https://example.com")
print(response.text)
# Session-based
proxy = proxly.FreeProxy()
response = proxy.get("https://example.com/api")
proxy.close()
# Context manager
with proxly.FreeProxy() as proxy:
response = proxy.get("https://example.com")
API
FreeProxy Class
FreeProxy(timeout=30, max_retries=3)
Methods:
get(url, **kwargs)post(url, **kwargs)put(url, **kwargs)delete(url, **kwargs)head(url, **kwargs)patch(url, **kwargs)get_session_info()close()
Convenience Functions
proxly.get(url, **kwargs)
proxly.post(url, **kwargs)
proxly.put(url, **kwargs)
proxly.delete(url, **kwargs)
proxly.head(url, **kwargs)
proxly.patch(url, **kwargs)
Error Handling
try:
response = proxly.get("https://example.com")
except proxly.ProxyError as e:
print(f"Proxy error: {e}")
Requirements
- Python 3.9+
- curl-cffi
License
GNU General Public License v3.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
proxly-0.1.1.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
proxly-0.1.1-py3-none-any.whl
(14.1 kB
view details)
File details
Details for the file proxly-0.1.1.tar.gz.
File metadata
- Download URL: proxly-0.1.1.tar.gz
- Upload date:
- Size: 14.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca389539e367abb848f36995849c43c02fbd512ebfc86cdaa057c0954df02730
|
|
| MD5 |
7093ca94e0f4c035ffb2b7a89cd8d5cc
|
|
| BLAKE2b-256 |
05824cd6f746c4ca5d0618b21260f9f2546bc08e6abf90b8dda7fb94a7131031
|
File details
Details for the file proxly-0.1.1-py3-none-any.whl.
File metadata
- Download URL: proxly-0.1.1-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6d7a9f2069c0007f469ccfed5960e1bbb721516c1190a1571cf5cc2dd4d3b1
|
|
| MD5 |
e8f0b7e56155868789eed18eafa7b8d6
|
|
| BLAKE2b-256 |
46a6d389cb8e66924086df0a4bc9e342b50a92a02cedad902fcaeb6dfce86d93
|