Async version of pychal (drop-in replacement to pychallonge)
Project description
Apychal
What?
This is the async version of pychal.
Why don't you submit this as a PR? What I did here was very simple. However it breaks compatibility with older versions of Python, which can be an issue. If you're going to use an async version of pychal, I think you're already aware of the reason why! apychal was initially made to work with ATOS (which is now here), a Discord bot relying on asynchronous tasks to be efficient.
Requirements
Please note that it :
- Only supports Python 3.6+ (modern
asyncio, removed legacy code). - Replaces
requestswithaiohttp(which makes this module asynchronous).
How to use
That's it for the main differences, otherwise it should be the same to use as the original.
You can install apychal with PyPI :
pip install apychal
Get started (example)
import asyncio
import achallonge
achallonge.set_credentials("user", "my_api_key")
async def main():
participants = await achallonge.participants.index('mytournament')
print(participants)
asyncio.run(main())
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file apychal-1.12.0.tar.gz.
File metadata
- Download URL: apychal-1.12.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fa1162f9fbb6b4e6c5cdd8e583d1651b920117a6bf1fdfa6f3e3e7f3d4e7126
|
|
| MD5 |
fee7ad15edf252cd1296b00b4c0aa875
|
|
| BLAKE2b-256 |
0ea5aeae4402ce0ab409e129f5649cb73f5609c7d319a74f4a9ddb98eb908a44
|
File details
Details for the file apychal-1.12.0-py3-none-any.whl.
File metadata
- Download URL: apychal-1.12.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10b346e7b4ff40f9a299173e833fa0f2ce1184326aae4fe2554bb9042a25ffab
|
|
| MD5 |
99653589773036f9f5da702de3fc6871
|
|
| BLAKE2b-256 |
446c353440bf8c279bf2c43d41ae8becf5844debcc5447e610815a134453bacf
|