Skip to main content

Simple and fast library for interacting with the o!rdr API.

Project description

Python version info PyPI version info pre-commit.ci status Documentation Status pytest Status mypy Status Codacy Status

Simple and fast asynchronous library for the o!rdr API.

Features

  • Support for modern async syntax (async with)

  • Event decorators

  • Rate limit handling

  • Easy to use

Installing

Python 3.9 or higher is required

To install the library, simply run the following commands

# Linux/macOS
python3 -m pip install -U aiordr

# Windows
py -3 -m pip install -U aiordr

To install the development version, do the following:

$ git clone https://github.com/NiceAesth/aiordr
$ cd aiordr
$ python3 -m pip install -U .

API Example

import aiordr
import asyncio


async def main():
    client = aiordr.ordrClient(verification_key="verylongstring")

    await client.create_render(
        "username",
        "YUGEN",
        replay_url="https://url.to.replay",
    )

    @client.on_render_added
    async def on_render_added(event: aiordr.models.RenderAddEvent) -> None:
        print(event)

    @client.on_render_progress
    async def on_render_progress(event: aiordr.models.RenderProgressEvent) -> None:
        print(event)

    @client.on_render_fail
    async def on_render_fail(event: aiordr.models.RenderFailEvent) -> None:
        print(event)

    @client.on_render_finish
    async def on_render_finish(event: aiordr.models.RenderFinishEvent) -> None:
        print(event)


if __name__ == "__main__":
    asyncio.run(main())

Contributing

Please read the CONTRIBUTING.rst to learn how to contribute to aiordr!

Acknowledgments

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

aiordr-0.3.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

aiordr-0.3.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file aiordr-0.3.0.tar.gz.

File metadata

  • Download URL: aiordr-0.3.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for aiordr-0.3.0.tar.gz
Algorithm Hash digest
SHA256 d0f6af31f24e9eb66f1fb7f47c6e46325bb7667a1f3f0fd4c6a48f8acb70a51f
MD5 63ad05c97b4fee47d2a8cc5600d42a21
BLAKE2b-256 541d0b5edf6fd7fa8ff66d4c2924c5f120a535c94df361a2f17d426a07bf61a6

See more details on using hashes here.

File details

Details for the file aiordr-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aiordr-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.9.18 Linux/6.5.0-1016-azure

File hashes

Hashes for aiordr-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 833fd25bc2d437601eb9680b09d37030014497afc54b046047b2ae9141913e42
MD5 04ad7384f68bdbabf367da754cd4c8de
BLAKE2b-256 dc12699a36ccf2f4ea7adb980d8fdf378efa2dfe32c8cd4119fde45dd0195e34

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