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.2.tar.gz
(17.2 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.2-py3-none-any.whl
(17.0 kB
view details)
File details
Details for the file proxly-0.1.2.tar.gz.
File metadata
- Download URL: proxly-0.1.2.tar.gz
- Upload date:
- Size: 17.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae65594badaa840d9eff8c48d5436744e13ea7ab41034e2d9bfed32ee2b0b002
|
|
| MD5 |
c64c78160c98a577276d5abb5ea79279
|
|
| BLAKE2b-256 |
786ff93189e0e47beeae4c1d56bb168fbf551d2124d199e6849556b951cda99d
|
File details
Details for the file proxly-0.1.2-py3-none-any.whl.
File metadata
- Download URL: proxly-0.1.2-py3-none-any.whl
- Upload date:
- Size: 17.0 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 |
46b74d3762f79c8cfd8a72d798f7ee4754be763ec9a3fb374fbedd7304f794f6
|
|
| MD5 |
d71b87564dd8c24faa9bafcfe1d5b9e9
|
|
| BLAKE2b-256 |
592513f2394196c5b9a3c2b7af8b0ff9e402ac4304f50be75d00a3a26d9f8715
|