A simple yet powerful proxy management library for Python
Project description
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
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
proxa-1.0.2.tar.gz
(9.3 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
proxa-1.0.2-py3-none-any.whl
(9.3 kB
view details)
File details
Details for the file proxa-1.0.2.tar.gz.
File metadata
- Download URL: proxa-1.0.2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15d6ae208ea397c2b55cbb3146b422c57c371e7f4de2018f901f612519cb1d12
|
|
| MD5 |
a2d7247a906588fbe0138f462e6374ce
|
|
| BLAKE2b-256 |
38c015a1cd5a8b3041f14e899bd709be08815a1b38ecec971a6e29e1b7764aea
|
File details
Details for the file proxa-1.0.2-py3-none-any.whl.
File metadata
- Download URL: proxa-1.0.2-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d23b6c2e591d5d5c2d3429b124c740c5f50fcd67410f8166f7a5ef2f551226d
|
|
| MD5 |
d4a7767daa7c6505ab5fa5a006928c99
|
|
| BLAKE2b-256 |
08354cab4ef7eb8c2de95b75b32b3320d25f1aa517d3e3fc46aa97581b5ded17
|