achallonge
async Challonge for Python 3.5+
Modern library that is more than just a wrapper for the Challonge web API
Requirements
aiohttp
Optional:
cchardetfaster replacement for chardet, as mentionned on the aiohttp pageaiodnsfor speeding up DNS resolving, highly recommended by aiohttp
Python version support
3.53.63.7
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():
# Log in into Challonge with your CHALLONGE! API credentials (https://challonge.com/settings/developer).
user = await challonge.get_user('your_challonge_username', 'your_api_key')
# Retrieve your tournaments
tournaments = await user.get_tournaments()
# Tournaments, matches, and participants are all represented as Python classes
for t in tournaments:
print(t.id) # 3272
print(t.name) # 'My Awesome Tournament'
print(t.status) # 'open'
# Retrieve the participants for a given tournament.
participants = await tournaments[0].get_participants()
print(len(participants)) # 13
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!
Release files for achallonge 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| achallonge-1.9.0.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| achallonge-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.0 kB
Release files / achallonge-1.9.0.tar.gz
| Download URL | achallonge-1.9.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f1792acb1cc3fa8b67229eed3ca4a58f378d62bcd47e2715843c24c4a078be7
|
|
BLAKE2b-256 checksum How to use checksums |
641212ce38e0d48952bb324147ea4c90f40cbb8766009f04287165dd3c69023d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
|
Release files / achallonge-1.9.0-py3-none-any.whl
| Download URL | achallonge-1.9.0-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa9ec307cc1ed5c4b3a67af99c633107731b60d5405c45b2cbd93bc28ec8c2f3
|
|
BLAKE2b-256 checksum How to use checksums |
5bd602ead7db7f267cfd25e9930c04e9934958a7e84b07df89bcce6c460fe979
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.26.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2
|