Catalog PyPI
Back to packageRELEASE DETAILS

1.9.0

PyPI

achallonge-compat-fork

A python library to use the Challonge API

challongematchtournament
Published17 Aug 2023
Direct dependencies3
Transitive dependenciesNot calculated

README

Version 1.9.0 documentation

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!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
aiohttp
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
aiohttp >=3.6.0runtime
cchardet
Environment
{
  "extras": "",
  "marker": "extra == 'speed'",
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
cchardet ; extra == 'speed'runtime
aiodns
Environment
{
  "extras": "",
  "marker": "extra == 'speed'",
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
aiodns ; extra == 'speed'runtime

Distribution files

2 collected
achallonge_compat_fork-1.9.0-py3-none-any.whl

bdist_wheel · 18.82 KB · Python py3

Source file
achallonge-compat-fork-1.9.0.tar.gz

sdist · 15.46 KB · Python source

Source file

Repository

PENDING
l9kd1/achallonge

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:12 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:7cc96746259cb7276d982f5e50ccc1de159abc36197eb3a44e3aaa76ae5022fa

Other collected versions

View all collected versions →