Skip to main content

HTTP proxy library for Python using CroxyProxy infrastructure

Project description

proxly

Python License

HTTP proxy library for Python using CroxyProxy infrastructure.

Installation

pip install proxly

Usage

import proxly

# Simple usage
response = proxly.get("https://example.com")
print(response.text)

# Session-based
proxy = proxly.FreeProxy()
response = proxy.get("https://example.com/api")
proxy.close()

# Context manager
with proxly.FreeProxy() as proxy:
    response = proxy.get("https://example.com")

API

FreeProxy Class

FreeProxy(timeout=30, max_retries=3)

Methods:

  • get(url, **kwargs)
  • post(url, **kwargs)
  • put(url, **kwargs)
  • delete(url, **kwargs)
  • head(url, **kwargs)
  • patch(url, **kwargs)
  • get_session_info()
  • close()

Convenience Functions

proxly.get(url, **kwargs)
proxly.post(url, **kwargs)
proxly.put(url, **kwargs)
proxly.delete(url, **kwargs)
proxly.head(url, **kwargs)
proxly.patch(url, **kwargs)

Error Handling

try:
    response = proxly.get("https://example.com")
except proxly.ProxyError as e:
    print(f"Proxy error: {e}")

Requirements

  • Python 3.9+
  • curl-cffi

License

GNU General Public License v3.0

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

proxly-0.1.1.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

proxly-0.1.1-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

File details

Details for the file proxly-0.1.1.tar.gz.

File metadata

  • Download URL: proxly-0.1.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for proxly-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ca389539e367abb848f36995849c43c02fbd512ebfc86cdaa057c0954df02730
MD5 7093ca94e0f4c035ffb2b7a89cd8d5cc
BLAKE2b-256 05824cd6f746c4ca5d0618b21260f9f2546bc08e6abf90b8dda7fb94a7131031

See more details on using hashes here.

File details

Details for the file proxly-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: proxly-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for proxly-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8d6d7a9f2069c0007f469ccfed5960e1bbb721516c1190a1571cf5cc2dd4d3b1
MD5 e8f0b7e56155868789eed18eafa7b8d6
BLAKE2b-256 46a6d389cb8e66924086df0a4bc9e342b50a92a02cedad902fcaeb6dfce86d93

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