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
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 | |
|---|---|---|---|
| proxa-1.0.2.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| proxa-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
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
|