SkillAgentSearch skills...

Pychesscom

An asynchronous Python client for Chess.com's API

Install / Use

/learn @vopani/Pychesscom
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

PyChessCom

An asynchronous Python client for Chess.com's API

<p> <img alt="License" src="https://img.shields.io/github/license/vopani/pychesscom?color=blue"> <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/pychesscom?color=orange"> <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/pychesscom?label=pypi&color=green"> <img src='https://readthedocs.org/projects/pychesscom/badge/?version=latest' alt='Documentation Status' /> <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/pychesscom?color=yellow"> <img alt="Twitter Follow" src="https://img.shields.io/twitter/follow/vopani"> </p>

Index

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())

Resources

License

This project is licensed under the Apache License 2.0

Credits

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

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated2y ago
Forks0

Languages

Python

Security Score

70/100

Audited on Apr 4, 2023

No findings