Skip to content

Aenoxic/aenox-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jan 20, 2025
c960c02 · Jan 20, 2025

History

28 Commits
Jan 20, 2025
Sep 2, 2024
Sep 2, 2024
Sep 2, 2024
Sep 21, 2024
Aug 28, 2024
Jan 17, 2025
Aug 28, 2024
Jan 17, 2025

Repository files navigation

AenoX API

⚙️ Installation

Python 3.10 or higher is required

pip install aenox

🚀 Example Usage

To be able to perform your API query properly, replace [YOUR_API_KEY] with a valid API key.

Example

from aenox import AenoXAPI

api = AenoXAPI(api_key="[YOUR_API_KEY]")

🫧 Cooldown

You can send 20 queries per second to the API. If you attempt to send another request before this cooldown has passed, you will receive a aenox.errors.CooldownError.

Example

You cannot run this query twice within 2 seconds:

from aenox import AenoXAPI

api = AenoXAPI(api_key="[YOUR_API_KEY]")

api.get_user_stats(user_id=123)

In such cases, use try/except to handle the error. For example:

from aenox import CooldownError
from aenox import AenoXAPI

api = AenoXAPI(api_key="[YOUR_API_KEY]")

try:
    api.get_user_stats(user_id=123)
except CooldownError:
    print('Cooldown!')

About

Official wrapper for the AenoX API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages