Proxa
A simple yet powerful Python library for managing and validating proxies.
🛠️ Version 1.0.2
📌 Features
- ✅ Easy proxy parsing from strings, dictionaries, or files
- 🔄 Automatic proxy rotation
- 🔀 Shuffle proxy list randomly
- 🧪 Built-in proxy checking with multiple IP lookup services
- 📦 Ready-to-use formats for
requests,Telethon, and more - ⚡ Lightweight and dependency-minimal
📥 Installation
pip install proxa
🚀 Quick Start
from proxa import ProxyManager
# Initialize with a list of proxies
manager = ProxyManager([
"http://user:pass@127.0.0.1:8080",
"socks5://10.10.1.0:3128"
])
# Get the current proxy
proxy=manager.current
print(proxy.url)
# Rotate to the next proxy
proxy=manager.next()
print(proxy.url)
# Shuffle proxies to randomize order
manager.shuffle()
print("Proxies shuffled.")
# Check if proxy works and get IP info
status, ip_info, error = proxy.check()
if status:
print("Proxy is working. IP info:", ip_info)
else:
print("Proxy check failed. Error:", error)
# Check if a proxy works
working_proxy = manager.get_working_proxy()
if working_proxy:
print("Working proxy:", working_proxy.url)
🛠 Usage Examples
From a File
manager = ProxyManager("proxies.txt")
Add & Remove Proxies
manager.add("http://new-proxy.com:8080")
manager.remove("http://user:pass@127.0.0.1:8080")
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🌟 Contribute
Contributions are welcome!
- Fork the repo
- Create your feature branch
- Submit a pull request
Made with ❤️ by Abbas Bachari
Metadata
Release files for proxa 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| proxa-1.0.2.tar.gz | 9.3 kB | Without provenance | Details for proxa-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| proxa-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for proxa-1.0.2-py3-none-any.whl |
Total release size: 18.6 kB
Release files / proxa-1.0.2.tar.gz
| Download URL | proxa-1.0.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15d6ae208ea397c2b55cbb3146b422c57c371e7f4de2018f901f612519cb1d12
|
|
BLAKE2b-256 checksum How to use checksums |
38c015a1cd5a8b3041f14e899bd709be08815a1b38ecec971a6e29e1b7764aea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / proxa-1.0.2-py3-none-any.whl
| Download URL | proxa-1.0.2-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d23b6c2e591d5d5c2d3429b124c740c5f50fcd67410f8166f7a5ef2f551226d
|
|
BLAKE2b-256 checksum How to use checksums |
08354cab4ef7eb8c2de95b75b32b3320d25f1aa517d3e3fc46aa97581b5ded17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for proxa 1.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.