Skip to main content

An asynchronous way to fetch data from nitrotype.

Project description

AsyncNT

An asynchronous way to fetch data from nitrotype.

Features

  • Asyncio support

  • Access to the Nitro Type API

  • Rate limit of 10 requests per second

  • Cache to speed up requests

Installation

pip install asyncnt

Basic Usage

import asyncio
import asyncnt


async def main():
    #create a session
    async with asyncnt.Session() as session:
        #get a Racer object
        racer = await session.get_racer("travis")
        #print races the racer has
        print(racer.races)

        #get a Team object
        team = await session.get_team("NT")
        #print team's daily speed
        print(team.daily_speed)

Check out the docs for more information.

Lisence

MIT

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

asyncnt-1.7.0.tar.gz (9.8 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