An asynchronous Python client for Chess.com's API
Project description
Cm Python API
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.1.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for pychesscom-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5897c6daf7742ce99cec97fe6aa06395e53d1b732911afc47604385f623a9dc9 |
|
MD5 | 4e5a6052beaccc6190ee59771e9e206f |
|
BLAKE2b-256 | b6c94a96b307b6c4791b58287ff9ace703253e2cb7ecb48075e14140d476afc9 |