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())
Metadata
Release files for apychal 1.12.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| apychal-1.12.0.tar.gz | 7.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| apychal-1.12.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.5 kB
Release files / apychal-1.12.0.tar.gz
| Download URL | apychal-1.12.0.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fa1162f9fbb6b4e6c5cdd8e583d1651b920117a6bf1fdfa6f3e3e7f3d4e7126
|
|
BLAKE2b-256 checksum How to use checksums |
0ea5aeae4402ce0ab409e129f5649cb73f5609c7d319a74f4a9ddb98eb908a44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|
Release files / apychal-1.12.0-py3-none-any.whl
| Download URL | apychal-1.12.0-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
10b346e7b4ff40f9a299173e833fa0f2ce1184326aae4fe2554bb9042a25ffab
|
|
BLAKE2b-256 checksum How to use checksums |
446c353440bf8c279bf2c43d41ae8becf5844debcc5447e610815a134453bacf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.7
|