Skip to main content

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

  1. Clone the repository
  2. Install development dependencies: pip install -e ".[dev]"
  3. 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

pokpok_sdk-0.1.2.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

pokpok_sdk-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file pokpok_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: pokpok_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for pokpok_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5b234a4d0dd28f04814957f6bf7adf7e5de1a896b85f9a7450ce0205ec59ee7e
MD5 e3dca47b256a4cdf5e23fa1af59ec100
BLAKE2b-256 4e9d60b96b553c658426422b8a1400fca7bf0342afff1d2013614ff6004cf75d

See more details on using hashes here.

File details

Details for the file pokpok_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pokpok_sdk-0.1.2-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

Hashes for pokpok_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 818c9f079a87859bec95a8268b399171f716379c86187076b7c17c296d606305
MD5 270068a163b927bd9a7dead0d44a493b
BLAKE2b-256 6c30a88131c653ba86299613694d0a7aca6eac879aaf66c212e00607f4555a22

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