Skip to main content

A simple yet powerful proxy management library for Python

Project description

Proxa

PyPI version Python Version License Downloads GitHub stars

Proxa — A simple yet powerful Python library for managing and validating proxies.


📌 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!

  1. Fork the repo
  2. Create your feature branch
  3. Submit a pull request

Made with ❤️ by Abbas Bachari

Project details


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.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

proxa-1.0.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file proxa-1.0.0.tar.gz.

File metadata

  • Download URL: proxa-1.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for proxa-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f604999874dd5c058c2f24244b92c61872d67c32841af2d2b756fdc6c39ecabd
MD5 e5578531672ab9328bf029fbaf15ee0d
BLAKE2b-256 5aa51e0c83f17c87e16df35abf225fd92760f487c703aa82ec4bc8fc1c3698ae

See more details on using hashes here.

File details

Details for the file proxa-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: proxa-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for proxa-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2563822fbb417b77929e65f4abe07459ab19acf34aa0df9f125bea4d4749ea2d
MD5 897f54ad5290e8de918c251ae7c90af1
BLAKE2b-256 4dea8a882430fdb12a09c4baf217c40066ede5df6e361469dc83480821d10772

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page