A Python 3.8+ implementation of the challonge.com API.
Project description
chyllonge
A Python 3.8+ implementation of the challonge.com API.
Prerequisites
chyllonge
requires that the CHALLONGE_KEY
and CHALLONGE_USER
environment variables are set.
CHALLONGE_USER
is yourchallonge.com
username.CHALLONGE_KEY
is yourchallonge.com
API key. An API key can be generated here.
Installation
To install chyllonge
, execute pip install chyllonge
.
Usage
from chyllonge import TournamentAPI
# create a tournament
tournaments_api = TournamentAPI()
from datetime import datetime, timedelta
tournament = tournaments_api.create(
name="chyllonge-temp",
start_at=(datetime.now() + timedelta(hours=1)).isoformat() + "-5:00",
check_in_duration=60
)
print(tournament["tournament"]["id"])
History
chyllonge
was inspired by pychallonge
- developed by Russ Amos - which (in turn) includes pychal
.
See CONTRIBUTORS.txt
for the original authors.
Testing
To run local tests, run python -m unittest tests.py
.
Note that the unit tests will create tournaments in your account, called chyllonge-temp
. It will try to delete them
afterward, but automated cleanup is not always guaranteed.
Non-frequently Asked Questions
Q: How do you pronounce chyllonge
?
A: Like "chill-ahnge".
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
Built Distribution
Hashes for chyllonge-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08e37780c42464f959f33aeb08ea3a72c7f58f4b76f0ec5cbb77529707589416 |
|
MD5 | 3b8dc61e82acc6e98271b568068ad420 |
|
BLAKE2b-256 | d22019a4254141ddad8d82917d0ca77e03003bfea1edc074528c80315eb68942 |