GithubHelp home page GithubHelp logo

wonderfall / apychal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zedgr/pychallonge

3.0 1.0 1.0 95 KB

Asynchronous version of pychal.

Home Page: https://challonge.com/api

License: BSD 2-Clause "Simplified" License

Python 100.00%

apychal's Introduction

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 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())

apychal's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

laggron42

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.