Skip to main content

An asynchronous Python client for Chess.com's API

Project description

pychesscom

An asynchronous Python client for Chess.com's API

Installation

Python 3.7 or higher is required

To install stable version from PyPI (recommended):

pip install pychesscom

To install development version:

$ git clone https://github.com/vopani/pychesscom
$ cd pychesscom
$ python3 -m pip install -r requirements.txt

Usage

Jupyter Notebook
from pychesscom import ChessComClient

client = ChessComClient()
response = await client.player.get_details('erik')
print(response)
Python Console
import asyncio
from pychesscom import ChessComClient

async def main():
	client = ChessComClient()
	response = await client.player.get_details('erik')
	print(response)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Documentation

https://pychesscom.readthedocs.io/

License

This project is licensed under the Apache License 2.0. See LICENSE for more information.

Credits

Chess.com API: https://www.chess.com/news/view/published-data-api
Lichess Python client: https://github.com/amasend/lichess_python_SDK

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

pychesscom-0.1.3.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

pychesscom-0.1.3-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file pychesscom-0.1.3.tar.gz.

File metadata

  • Download URL: pychesscom-0.1.3.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pychesscom-0.1.3.tar.gz
Algorithm Hash digest
SHA256 bd3a1c38903ce1fb0be573bf394afec2585831d68763b8f6c88d0ad6ce13d963
MD5 16e6ce57ca310169308346a506557aef
BLAKE2b-256 b62b5ae42d40108f4cfcabab3c266ad9fd880dcd6e014fc4504b8df84752d735

See more details on using hashes here.

File details

Details for the file pychesscom-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pychesscom-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for pychesscom-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a37835c915c36f82e2e6877350d8e3254c609846f0cc53137b63ffdc041e85ac
MD5 7cb255b56f6a997db2fc19d9e43c43b3
BLAKE2b-256 c2225905f723699ccd58385ed56b07b1116e10371fbfeeaecafd00563e258f22

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