AsyncClient

class alliancepy.ext.aio.async_client.AsyncClient(api_key: str, application_name: str = None)

Bases: object

This is the asynchronous version on the main client class. It has the same paramters and the team method, but async. This means that it must be called with await.

Parameters
  • api_key (str) – Your TOA API key. This is required, otherwise you will not be able to access the database.

  • application_name (str) – The name of your application. It can just be the name of your script. Defaults to sys.argv[0]

async team(team_number: int)

Create an asynchronous Team object.

Parameters

team_number (int) – A valid First Tech Challenge team number.

Returns

The Team object.

Return type

Team

async api_version()

The version of the API that is currently in use.

Return type

int