Skip to main content

pharox-sdk

Python SDK for the Pharox proxy lifecycle management ecosystem.

Works in two interchangeable modes:

  • Remote mode — HTTP client for a running pharox-service
  • Local mode — direct access to pharox-toolkit via IAsyncStorage (no service required)

Installation

pip install pharox-sdk

Quick start

from pharox_sdk import PharoxSDK

# Remote mode
sdk = PharoxSDK.remote("http://localhost:8000", api_key="my-key")

# Local mode (no service needed)
from pharox import AsyncInMemoryStorage
sdk = PharoxSDK.local(AsyncInMemoryStorage())

# Same interface in both modes
async with sdk.with_lease("my-pool") as lease:
    if lease:
        print(lease.proxy_id)

Links

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pharox_sdk-0.2.0.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

pharox_sdk-0.2.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file pharox_sdk-0.2.0.tar.gz.

File metadata

  • Download URL: pharox_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.13 Linux/6.17.0-1008-azure

File hashes

Hashes for pharox_sdk-0.2.0.tar.gz
Algorithm Hash digest
SHA256 016786da709f457c7a4fbb09410bda0ef30f1ed0873824b88df0502f81022788
MD5 fbd9010432e8d01fe082b1662645d512
BLAKE2b-256 8526ed00e84199b6f0f37921b9e0965ce741fa45481bf5a1e1ba1254fc1ebb5e

See more details on using hashes here.

File details

Details for the file pharox_sdk-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pharox_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.12.13 Linux/6.17.0-1008-azure

File hashes

Hashes for pharox_sdk-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 529a3f03e7b041c418ca3bf0154a5f6355eac9c5829ff60f82858ca41616c2bb
MD5 c3be6b57051f1087c80d4620407d6301
BLAKE2b-256 25c9958400d6c0a14c7c12c809a15e4d12b8877483a30b014714155d700f403f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Supported by

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