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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pokpok_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 10.7 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.4.tar.gz
Algorithm Hash digest
SHA256 954ab7078f61bcac3bc516172ec6bf8794d5a33db667adc9608f93cd0329165b
MD5 42302366518f9f7d7fd90d5bd03d08c5
BLAKE2b-256 daa3238f30d98d25db6d3c8675dd82c109fb017d91c3e981fbed79956b823f83

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pokpok_sdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.6 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 753e14370c7d923437372b3b03bce6f9b8b4fecbc2bb1266ed61789089df1f11
MD5 764895bbcb17df40dfc038b5cc4c3bd6
BLAKE2b-256 7835eb074c9b4a7bb9eb489c2b7aaf201a7cac21633c57245d3e541a8aae341a

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