Skip to main content

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 your challonge.com username.
  • CHALLONGE_KEY is your challonge.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

chyllonge-1.0.3.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

chyllonge-1.0.3-py3-none-any.whl (9.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page