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.3.tar.gz (9.6 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.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pokpok_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 9.6 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.3.tar.gz
Algorithm Hash digest
SHA256 ee3d9ae3d13ed8d99b697fec9a7de0bd80f2ad284d7cbfb8fdb669337c34d33d
MD5 656ecaf933f1dc622dc64dc436c79018
BLAKE2b-256 e310b248d51cbb1d85c7de3db4690c81b0d67739e0151c04f2be64cd10422355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pokpok_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 969e2ef54ad84dd8f900b6da02ba4c716566309cc94856e1639d4dd05600705e
MD5 ad8282c0dd93e7128d7dbd755c2941f5
BLAKE2b-256 a7291294a7c548b35adf8526940f2e1c0eb06971cc69d84db6d97023db8c7028

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