Skip to main content

TCGPlayer-API

latest release supported python versions package status license

A Python client library for the TCGPlayer API

Installation

pip install tcgplayer-api

Note that the latest version of tcgplayer-api will only be compatible with newer version of Python. This is to allow tcgplayer-api to take advantage of the latest language/library features and to reduce the technical debt of maintaining tcgplayer-api. See the table below for officially supported versions:

tcgplayer-api Python
0.0.1 >=3.6

Example Usage

>>> from tcgplayer_api.auth import BearerAuth
>>> from tcgplayer_api.client import TCGPlayerClient


>>> PUBLIC_KEY = "x"
>>> PRIVATE_KEY = "y"
>>> auth = BearerAuth(public_key=PUBLIC_KEY, private_key=PRIVATE_KEY)

>>> client = TCGPlayerClient(auth=auth)
>>> client.list_all_categories()
{'totalItems': 61,
 'success': True,
 'errors': [],
 'results': [{'categoryId': 55,
   'name': 'Architect TCG',
   'modifiedOn': '2018-09-17T15:21:54.233',
   'displayName': 'Architect TCG',
   'seoCategoryName': 'Architect TCG',
   'sealedLabel': 'Sealed Products',
   'nonSealedLabel': 'Singles',
   'conditionGuideUrl': 'https://store.tcgplayer.com/',
   'isScannable': True,
   'popularity': 0},
  ...
 ]
}

Roadmap to v1.0.0

  • Fix support for post and other request types besides get
  • Add pagination support for responses
  • Add module/func docstrings
  • Add basic documentation
  • Add parameters to v1.37.0.json
  • Improve endpoint methods' docstrings to include arg info
  • Add more meaningful error messages when required params are missing or for various status codes

Metadata

Release files for tcgplayer-api 0.0.3

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

Source distribution (sdist)

Source distribution for tcgplayer-api 0.0.3
File Size Uploaded Provenance Actions
tcgplayer_api-0.0.3.tar.gz 13.7 kB Without provenance Details for tcgplayer_api-0.0.3.tar.gz

Release files / tcgplayer_api-0.0.3.tar.gz

Download URL tcgplayer_api-0.0.3.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
621856cd456726e1d99fa03f634f687728fcde3d7f9fa07485a634a6c6899844
BLAKE2b-256 checksum
How to use checksums
55d321c02cea8d6425739e0463dea16a50720aaecbd4c8b3a2071b2d3edc479a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

Security for tcgplayer-api 0.0.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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