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

Uploaded Source

File details

Details for the file asyncnt-1.7.0.tar.gz.

File metadata

  • Download URL: asyncnt-1.7.0.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for asyncnt-1.7.0.tar.gz
Algorithm Hash digest
SHA256 b20519643e3f1a965bf25382aa61401c8e0e7a57130c92be38da5a310f3629fc
MD5 bce60a3daaaa7fb1e3713d9b55231123
BLAKE2b-256 19657f5ba0c944000c53970d1764c030e8fa59c1501b8945aa475735c9367a4b

See more details on using hashes here.

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