THE ORIONIS API
Build with clarity.
Explore the building blocks of an async-first Python framework. Every module, class, and method — connected, searchable, and ready to build with.
class documentation
Configure the Redis connection used by HTTP rate limiting.
| Method | __post |
Validate connection fields without creating a Redis client. |
| Instance Variable | db |
Redis database index, read from REDIS_DB. |
| Instance Variable | endpoint |
Redis host address, read from REDIS_HOST. |
| Instance Variable | password |
Optional Redis password, read from REDIS_PASSWORD. |
| Instance Variable | port |
Redis TCP port, read from REDIS_PORT. |
Inherited from BaseEntity:
| Class Method | _cached |
Retrieve field definitions and normalized types cached by class. |
| Method | __init__ |
Initialize declared fields and public extra attributes. |
| Method | _dynamic |
Return public instance attributes that are not declared fields. |
| Method | _validate |
Validate names and storage for public extra attributes. |
| Method | get |
Describe declared fields and, optionally, dynamic attributes. |
| Method | to |
Return a recursively copied dictionary of declared and extra values. |
| Class Variable | __slots__ |
Declare that this class introduces no additional instance slots. |
| Class Variable | _orionis |
Cache declared fields and normalized type names for each concrete class. |
Validate connection fields without creating a Redis client.
| Returns | |
None | Reject invalid connection settings during configuration loading. |
| Raises | |
TypeError | If a field has an unexpected type. |
ValueError | If the endpoint is empty, the port is invalid or the db is negative. |