Skip to main content

Cross-platform Python API accessor library

Project description

pokegamblers

Quickstart

pip install pokegamblers
import pokegamblers as pg

pc = pg.Accessor("https://example.com", "Bearer YOUR_TOKEN")
results = pc.search("eevee")

Setup

uv

git clone <repo-url>
cd pokegamblers
uv sync

pip

pip install .

Constructor

pc = pg.Accessor(
    "https://example.com",
    "Bearer YOUR_TOKEN",
    min_interval=0.5,
    max_retries=3,
    timeout=20.0,
)

API Reference

search

pc.search("prismatic")
pc.search("prismatic", cursor="abc123")
pc.search("prismatic", category="pokemon-cards")
Parameter Type Default Description
query str required Search query
cursor str | None None Pagination cursor
**filters Any Additional query parameters

item

pc.item("8244610")
pc.item("8244610", all_sales=False)
Parameter Type Default Description
item_id str required Item ID
all_sales bool True Include full sales history across conditions, be careful

consoles

pc.consoles("pokemon-cards")
pc.consoles("pokemon-cards", page_size=50)
Parameter Type Default Description
category str required Console category slug
**extra Any Additional query parameters

console

pc.console("pokemon-prismatic-evolutions")
pc.console("pokemon-prismatic-evolutions", cursor="abc123")
pc.console("pokemon-prismatic-evolutions", page_size=50)
Parameter Type Default Description
console_uri_name str required Console URI name (slug)
cursor str | None None Pagination cursor
**extra Any Additional query parameters

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

pokegamblers-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pokegamblers-0.2.0-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file pokegamblers-0.2.0.tar.gz.

File metadata

  • Download URL: pokegamblers-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for pokegamblers-0.2.0.tar.gz
Algorithm Hash digest
SHA256 3155aa45dbbb68777e4f154413f9b4d3f3b5af7fd3e8d646d0d7a7978adb72a1
MD5 d78f84d89419016ca819a690baeaf55e
BLAKE2b-256 b0350c29e7c9d3ee7ace493e7b25f2e5a1a47cb843d55069a86e223923f887a3

See more details on using hashes here.

File details

Details for the file pokegamblers-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pokegamblers-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for pokegamblers-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a035f36eb38ea1802bc7330ea5f23086d9b9d0f6be38e8a8132eb37da75e619
MD5 2219bc985ef10f806ea8cd1ef70d5d4d
BLAKE2b-256 7315ebde0c9b27a3ca9f9871f5d6edb7e872baa31bfbd2a13e516148d78031d0

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