Achallonge Python Package
A python library to use the Challonge API

pip install achallonge


achallonge Project Description

achallonge

async Challonge for Python 3.5+

Build Status Documentation Status Coverage Status

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
  • 3.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!

Achallonge Python Package Download

achallonge 1.8.0 Download:

achallonge-1.8.0-py3-none-any.whl

Package File Type: Wheel Python Version: py3 Date released: Apr 4, 2019
achallonge 1.8.0 Download:

achallonge-1.8.0.tar.gz

Package File Type: Source Python Version: None Date released: Apr 4, 2019

Achallonge Other Python Versions

achallonge 1.7.0 Jan 20, 2019
achallonge 1.6.1 Jun 7, 2017
achallonge 1.6.0 Jun 7, 2017
achallonge 1.5.0 Jun 1, 2017
achallonge 1.4.0 May 21, 2017
achallonge 1.3.0 May 20, 2017
achallonge 1.2.0 Apr 14, 2017
achallonge 1.1.0 Apr 8, 2017
achallonge 1.0.0 Jan 16, 2017
achallonge 0.5.0 Jan 16, 2017

Share this Package