stephwag / challonge.py

Python library for the Challonge API (Work in Progress)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Challonge.py

Python wrapper for the Challonge API

Install

  • pip install git+https://github.com/stephwag/challonge.py.git --upgrade
  • import challonge

Example

async def main():
    t = Tournament({ 'id' : 'challonge url or id'})

    async with aiohttp.ClientSession() as session:
        await t.get(session)
        print("Welcome to the %s tournament!" % t.name)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Requirements

  • Python 3.5.3+
  • asyncio and aiohttp libraries

About

Python library for the Challonge API (Work in Progress)

License:MIT License


Languages

Language:Python 100.0%