🖥️ Clients¶
⭐ Asynchronous Client¶
- class anmoku.clients.async_.AsyncAnmoku(debug: bool | None = False, jikan_url: str | None = None, session: ClientSession | None = None, rate_limits: Tuple[Tuple[int, int], Tuple[int, int]] | None = None)[source]¶
Bases:
BaseClient
Asynchronous anmoku client. Uses aiohttp for http and slowstack for rate-limiting.
- async get(resource: Type[ResourceGenericT], id: SnowflakeT) ResourceGenericT [source]¶
Get’s the exact resource by id.
- jikan_url¶
✴️ Synchronous Client¶
- class anmoku.clients.sync.Anmoku(debug: bool | None = False, jikan_url: str | None = None, session: Session | None = None, rate_limits: Tuple[Tuple[int, int], Tuple[int, int]] | None = None)[source]¶
Bases:
BaseClient
The normal synchronous Anmoku client. Uses requests for http and slowstack for rate limiting.
- get(resource: Type[ResourceGenericT], id: SnowflakeT) ResourceGenericT [source]¶
Get’s the exact resource by id.
- jikan_url¶