Skip to main content

An async wrapper for Airi API written in Python.

Project description

airi.py

An async wrapper for Airi API written in Python.

Key Features

  • An async library.
  • Anime fact, waifu & more!
  • Especially made for discord bots.
  • Easy to use with an object oriented design.

Installing

Python 3.8 or higher is required

You can install it by following command:

pip install airi.py

Quick Example

To check whether your AIRI API TOKEN is correct or not.

import airi
import asyncio

async def test():
    
    """
    To check whether your AIRI API TOKEN is correct or not.
    returns: status code
    """

    client = airi.Client("TOKEN")
    # above, TOKEN is AIRI API TOKEN
    status = await client.status()

    print(status)
    
asyncio.get_event_loop().run_until_complete(test())

check examples folder for more!

FAQ

How do I get the Airi API token?

To get the token, join Discord server of Airi. Move to #bot-commands channel. And do -claim.

From here, further process should start in your DM. Good luck!

My Token is not working anymore. Why?

Make sure that you've joined the support server, or else it won't work. If it's still not working, please ask for help in their official server.

Any ratelimit?

Yes, 5 requests/second.

API website?

Here: https://airi.kyoyo.me/

Related Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for airi.py, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size airi.py-0.2.0.tar.gz (3.6 kB) File type Source Python version None Upload date Hashes View
Filename, size airi.py-0.2.0-py3-none-any.whl (4.7 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page