achallonge
async Challonge for Python 3.5+
Modern library that is more than just a wrapper for the Challonge web API
Requirements
Optional:
cchardet
faster replacement for chardet, as mentionned on the aiohttp pageaiodns
for speeding up DNS resolving, highly recommended by aiohttp
Python version support
Installation
pip install achallonge
If you want to have the optional dependencies for aiohttp, you can:
pip install achallonge[speed]
Usage
import challonge
async def foo():
user = await challonge.get_user('your_challonge_username', 'your_api_key')
tournaments = await user.get_tournaments()
for t in tournaments:
print(t.id)
print(t.name)
print(t.status)
participants = await tournaments[0].get_participants()
print(len(participants))
Documentation
The full documentation can be found on Read the docs
Author / License
Distributed under MIT license. See LICENSE
for details
Fabien Poupineau (fp12) - 2017-2019
Twitter: @fp12gaming
Join the Discord Server and discuss about this lib!