Python SDK for PokPok API
Project description
PokPok SDK
pokpok_sdk/ ├── pyproject.toml ├── README.md ├── src/ │ └── pokpok_sdk/ │ ├── init.py │ ├── client.py │ ├── models.py │ ├── exceptions.py │ └── constants.py └── tests/ ├── init.py └── test_client.py
pyproject.toml
[build-system] requires = ["hatchling"] build-backend = "hatchling.build"
[project] name = "pokpok_sdk" version = "0.1.0" authors = [ { name = "Your Name", email = "your.email@example.com" }, ] description = "PokPok SDK for accessing quote services" readme = "README.md" requires-python = ">=3.8" dependencies = [ "pydantic>=2.0.0", "requests>=2.28.0", ]
[project.optional-dependencies] dev = [ "pytest>=7.0.0", "black>=22.0.0", "isort>=5.0.0", ]
README.md
PokPok SDK
A Python SDK for interacting with PokPok's quote services.
Installation
pip install pokpok_sdk
Usage
from pokpok_sdk import PokPokClient, QuoteRequest
client = PokPokClient(api_key="your-api-key")
request = QuoteRequest(
duration=3,
meal="economical",
coin="btc",
option="up",
size=1,
type="payg"
)
quote = client.get_quote(request)
print(quote.data.spot_price)
Development
- Clone the repository
- Install development dependencies:
pip install -e ".[dev]" - Run tests:
pytest
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pokpok_sdk-0.1.1.tar.gz.
File metadata
- Download URL: pokpok_sdk-0.1.1.tar.gz
- Upload date:
- Size: 8.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5f80c1ddaa368dd215138c65ffabd3ba35a09283f7c0f02e31b8ec4a5778ebb
|
|
| MD5 |
8cf9204179602413db35d99f14dea553
|
|
| BLAKE2b-256 |
5af0768e11fc6101569820ff1ee5892fc8d9ebfde65f2a611e4e4505b7f16026
|
File details
Details for the file pokpok_sdk-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pokpok_sdk-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8625f49e278b1858187783e623431797e56052c27e678a61ce78e08657e231a4
|
|
| MD5 |
b52c1fe1f9a260fb96be6279c9bec841
|
|
| BLAKE2b-256 |
93648ed6835810f14d0264b33168860f073e42f100365b588bfa4615cb9e17b4
|