Skip to main content

A simple yet powerful proxy management library for Python

Project description

Proxa

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

Python PyPI - Version License Downloads

🛠️ Version 1.0.1

📌 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.1.tar.gz (9.2 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.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: proxa-1.0.1.tar.gz
  • Upload date:
  • Size: 9.2 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.1.tar.gz
Algorithm Hash digest
SHA256 8c4b9b9d2082f6ce1eb93e37c4d8d50efcf387a3bbefd2f27b89b379f8cc4887
MD5 e1e8c59e8e512464ddb489773bf054cf
BLAKE2b-256 3dbfa1ff9b50ed0a91fc976fdb9b0775e1bd8e5d0913b4e5151d2228e86adfdc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: proxa-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b4a569e8b80e8f0b0795d74ca13ebfeec379c7573c43a65c69ecb82647323e5
MD5 3846e16cb3fd393094719308e61518e6
BLAKE2b-256 f8aba034ec7dbcc933ab22b742f79ff695e212b8c50f68bd1267133b87497707

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