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-toolkitviaIAsyncStorage(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
- pharox-toolkit — core library
- pharox-service — FastAPI service
Metadata
Release files for pharox-sdk 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pharox_sdk-0.2.0.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pharox_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.0 kB
Release files / pharox_sdk-0.2.0.tar.gz
| Download URL | pharox_sdk-0.2.0.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
016786da709f457c7a4fbb09410bda0ef30f1ed0873824b88df0502f81022788
|
|
BLAKE2b-256 checksum How to use checksums |
8526ed00e84199b6f0f37921b9e0965ce741fa45481bf5a1e1ba1254fc1ebb5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.13 Linux/6.17.0-1008-azure
|
Release files / pharox_sdk-0.2.0-py3-none-any.whl
| Download URL | pharox_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
529a3f03e7b041c418ca3bf0154a5f6355eac9c5829ff60f82858ca41616c2bb
|
|
BLAKE2b-256 checksum How to use checksums |
25c9958400d6c0a14c7c12c809a15e4d12b8877483a30b014714155d700f403f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.12.13 Linux/6.17.0-1008-azure
|