achallonge-1.9.0
توضیحات
A python library to use the Challonge API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | achallonge-1.9.0 |
| نام | achallonge |
| نسخه کتابخانه | 1.9.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Fabien Poupineau (fp12) |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/fp12/achallonge |
| آدرس اینترنتی | https://pypi.org/project/achallonge/ |
| مجوز | MIT |
# achallonge
*async Challonge for Python 3.5+*
[](https://travis-ci.org/fp12/achallonge)
[](http://achallonge.readthedocs.io/en/latest/?badge=latest)
[](https://coveralls.io/github/fp12/achallonge?branch=master)
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
```python
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](http://achallonge.readthedocs.io/en/latest/index.html)
# Author / License
Distributed under MIT license. See `LICENSE` for details
Fabien Poupineau (fp12) - 2017-2019
Twitter: [@fp12gaming](https://twitter.com/fp12gaming)
Join the [Discord Server](https://discord.gg/KSRxBav) and discuss about this lib!
نیازمندی
| مقدار | نام |
|---|---|
| ==3.6.0 | aiohttp |
| - | cchardet |
| - | aiodns |
نحوه نصب
نصب پکیج whl achallonge-1.9.0:
pip install achallonge-1.9.0.whl
نصب پکیج tar.gz achallonge-1.9.0:
pip install achallonge-1.9.0.tar.gz