Socket
Book a DemoInstallSign in
Socket

proxly

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proxly

HTTP proxy library for Python using CroxyProxy infrastructure

pipPyPI
Version
0.1.4
Maintainers
1

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.proxly()
response = proxy.get("https://example.com/api")
proxy.close()

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

# Get available servers
servers = proxly.get_server_list()
print(f"Available servers: {len(servers)}")

API

proxly Class

proxly(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)

Server Management

proxly.get_server_list()     # Get list of available proxy servers
proxly.clear_server_cache()  # Clear cached server list

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts