Skip to main content

pokewallet

Install with pip install pokewallet. The root README has the quickstart, the full method table and the MCP server.

Official Python SDK for the PokeWallet API: Pokémon, One Piece and ten more card games, with TCGPlayer and CardMarket prices. Python 3.9+, sync and async clients, httpx is the only dependency.

from pokewallet import PokeWallet

# Key format: pk_live_xxx. Keep it in the environment, never in source control.
pw = PokeWallet()  # reads POKEWALLET_API_KEY, or pass api_key=...

page = pw.pokemon.search("charizard", limit=10)
op01 = pw.onepiece.set("OP01")
for card in pw.games.mtg.set_cards("FRA"):
    print(card.name)

Async:

from pokewallet import AsyncPokeWallet

async with AsyncPokeWallet() as pw:
    page = await pw.pokemon.search("pikachu")
    async for card in pw.games.mtg.search_all("lotus"):
        ...

Pokémon, One Piece and the ten games (pw.games.mtg, pw.games.ygo, ... or pw.game(code)) share one interface: search, search_all, card, sets, set, set_cards, prices, statistics, completion_value, trending, top_cards. Pokémon adds price_history.

  • Typed errors: AuthError, PlanRequiredError (redeem_url / upgrade_url), FeatureNotEnabledError, RateLimitError, AmbiguousSetError (matches), NotFoundError, UnavailableError, ValidationError.
  • Retries: only on 429 (when Retry-After is present, within retry_after_cap, default 30 s, and no quota window is exhausted) and on 503 (up to max_retries, default 2). Never on other 4xx or 5xx.
  • Validation: limit, page and lang are checked before the request is sent.
  • Normalization: prices are float | None; set identifiers are exposed as set_id / set_code / set_name (One Piece too, in card detail and search); every object keeps the server value in raw; a card has product_type and a set listing has card_count / sealed_count. Ambiguous set answers (200, 300 and 409 on the wire) all raise AmbiguousSetError.
  • Key safety: the key is held in a closure and shown as pk_*** by repr, str and errors; clients cannot be pickled.
  • Card languages (Pokémon): search, card, set and search_all / set_cards take lang=: de es fr it pt ko zh-cn zh-tw th id (any case; en and ja are the default and send nothing; anything else raises ValidationError, and so does lang on One Piece or the games). The card then has language (the language served, "en" when the card has no translation), languages (always, on Pokémon: per language "data" and/or "image") and image with path (relative, such as /images/pk_…?lang=it), language and languages. Translations can be partial. image_url(card.image.path) adds the host. Needs the API release that serves lang; before it, nothing is translated and languages is {}.
  • Images: image_url(card_id) only builds the URL; the image routes need the X-API-Key header. A 404 Image not found means the source has no image (do not retry it in the same run); 5xx answers are temporary (retry with backoff); on 429 wait for Retry-After.
  • CardMarket-only sets (negative set_id): each prices row is one CardMarket product, and its cardmarket block is the normal price. A tcgplayer block there is an extra link with no finish and must not be compared or added to it; for European prices by finish use card(id). An ambiguous set_code on prices is resolved with the numeric set_id.

The client can be created without a key: health() and list_games() are public and work without one (the X-API-Key header is sent only when a key is set); every other call raises ValidationError before any request is made.

Every request carries User-Agent: pokewallet-sdk-py/<version> and X-PokeWallet-Client: pokewallet-sdk-py/<version>; the client argument replaces the latter with your app name.

Attribution: if you show data obtained through the PokeWallet API, SDKs or MCP server to other people, credit PokéWallet with visible text "Data by PokéWallet" (or "Powered by PokéWallet") linking to https://pokewallet.io; private use needs no attribution. See the Terms of Use. This concerns the data and the service; the MIT license of the code is separate.

Metadata

Release files for pokewallet 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pokewallet 0.1.9
File Size Uploaded Provenance Actions
pokewallet-0.1.9.tar.gz 22.1 kB With provenance Details for pokewallet-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pokewallet 0.1.9
File Interpreter ABI Platform Actions
pokewallet-0.1.9-py3-none-any.whl Python 3 none any Details for pokewallet-0.1.9-py3-none-any.whl

Total release size: 51.1 kB

Release files / pokewallet-0.1.9.tar.gz

Download URL pokewallet-0.1.9.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
36bf43fbd870c1c31a8bb5c20409c41dba5663af8264ef02ae96df1915089f9c
BLAKE2b-256 checksum
How to use checksums
d5941fe5b26788a084928f8febd526b6b2a103fc88a27f2f7efbce083622d527
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Release files / pokewallet-0.1.9-py3-none-any.whl

Download URL pokewallet-0.1.9-py3-none-any.whl
Size 29.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c62014778fd810d0dcab823b98b7051b4b087cdd9afc820d3c24d7f6f03c0e3
BLAKE2b-256 checksum
How to use checksums
d139dddf77881a087a2c47e003db52c262b4a1e40266dff7f1263c1a7df4b64a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

Security for pokewallet 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pokewallet-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page