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.0.tar.gz (8.8 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.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for pokpok_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8dfbac6f08e415a8a882b9afe277704fcbc2b30e1d17cd678f4f8e2fa4cdcf04
MD5 5d1bfe4c786f99d544e512bdc91e447b
BLAKE2b-256 a7594d9ac96869bc25a57262f4e3677605e13e99f32fdbdfc907bc86fb211a93

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pokpok_sdk-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fb107e7cb07c838cb699e0130dfeb2741ea5144a34e78215eecb624ea81d16a9
MD5 c7854578c7cb8d9fae8cecd078cf2aec
BLAKE2b-256 7408db0de021bcf2f2dbb1f1f4b2f71c84a3680cfbe01bf469d581911e6043dc

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