Skip to main content

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? I don't trust my tech skills to be honest, 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.

Requirements

Please note that it :

  • Only supports Python 3.6+ (modern asyncio, removed legacy code).
  • Replaces requests with aiohttp (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

apychal-1.9.8.tar.gz (6.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page