Skip to main content

⛔️ DEPRACATED: Asynchronous wrapper for the CodinGame API.

Project description

Use the codingame module instead.

Install that module:

pip install codingame[async]

To create an asynchronous client:

import asyncio
import codingame

async def main():
   client = codingame.Client(is_async=True)

   # if you want to log in
   await client.login("email@example.com", "password")

   # get a codingamer
   codingamer = await client.get_codingamer("username")
   print(codingamer.pseudo)

   # get the global leaderboard
   global_leaderboard = await client.get_global_leaderboard()
   # print the pseudo of the top codingamer
   print(global_leaderboard.users[0].pseudo)

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

aiocodingame-1.0.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

aiocodingame-1.0.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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