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

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.1.0.tar.gz (35.7 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.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pokegamblers-0.1.0.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.3

File hashes

Hashes for pokegamblers-0.1.0.tar.gz
Algorithm Hash digest
SHA256 09e53c5da66853472eb13ea664311305df1af554e3d6ae56e452e9da3ee3700d
MD5 51a79cab42c0c901be6c2cc713cc26a5
BLAKE2b-256 ec0291d0658eb0c108751c98c5d398cf8885c3d602fbd17e139d3be0ceef778c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pokegamblers-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dee952f2e6750b891a4d4d436d6511a6785158cb4aac220cd5f7776178b5e5a3
MD5 bed93356319c942f0f99e609fade986e
BLAKE2b-256 19543956df07ff294c1060bf793308cbc17b3a0072a47a02a11cab5efe54582e

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