Skip to main content

A python library to use the Challonge API

Project description

achallonge

async Challonge for Python 3.5+

Build Status Documentation Status Coverage Status Code Issues

Modern library that is more than just a wrapper for the Challonge web API

Requirements

  • aiohttp

Optional:

  • cchardet faster replacement for chardet, as mentionned on the aiohttp page
  • aiodns for speeding up DNS resolving, highly recommended by aiohttp

Python version support

  • 3.5
  • 3.6

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

Twitter: @fp12gaming

Join the Discord Server and discuss about this lib!

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

achallonge-1.7.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

achallonge-1.7.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file achallonge-1.7.0.tar.gz.

File metadata

  • Download URL: achallonge-1.7.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for achallonge-1.7.0.tar.gz
Algorithm Hash digest
SHA256 49788a8b2d73f2a045d25f71ea86ed6104c16a2c8ba22e7ba41474a44df87eb8
MD5 e03ba963a5ad77d8dc66db7e906739db
BLAKE2b-256 0571a83fff6642e89a11b2b40976fa91b5ccc18ff33a465228524969c7820aee

See more details on using hashes here.

File details

Details for the file achallonge-1.7.0-py3-none-any.whl.

File metadata

  • Download URL: achallonge-1.7.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.2

File hashes

Hashes for achallonge-1.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66654d73d6faae1cb6b256fe746a3ec12ec6848031053a550dcf96494bc3fc7f
MD5 55adcf210a241de8531dfe3bc60e0da8
BLAKE2b-256 a96a601fdae673d67dce6ec332e713b414fa5e6de1a118d37d64e3b0dc5b09ea

See more details on using hashes here.

Supported by

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