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
Represent the rate-limiting configuration for HTTP.
| Method | __post |
Validate rate-limiting fields. |
| Method | __validate |
Validate rate-limiting constraints. |
| Method | __validate |
Validate backend selection, bounded capacity and Redis transport. |
| Instance Variable | rate |
Whether global rate limiting is enabled. |
| Instance Variable | rate |
Maximum retained accepted timestamps in the memory store. |
| Instance Variable | rate |
Maximum retained clients in the memory store. |
| Instance Variable | rate |
Redis connection settings, used only by the Redis store. |
| Instance Variable | rate |
Application namespace for Redis quota keys. |
| Instance Variable | rate |
Bound Redis connect and socket operations in seconds. |
| Instance Variable | rate |
Maximum number of requests allowed per window. |
| Instance Variable | rate |
memory for one process or redis for shared worker quotas. |
| Instance Variable | rate |
Time window in seconds for rate limit counting. |
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 rate-limiting fields.
| Returns | |
None | Validate rate-limiting fields. |
| Raises | |
TypeError | If any field has an unexpected type. |
ValueError | If numeric fields are not positive. |
Validate rate-limiting constraints.
Check rate_limit_enabled, rate_limit_requests, and rate_limit_window_seconds.
| Returns | |
None | Validate rate-limiting constraints. |
| Raises | |
TypeError | If any field has an unexpected type. |
ValueError | If numeric fields are not positive. |
Validate backend selection, bounded capacity and Redis transport.
| Returns | |
None | Reject invalid backend settings during configuration loading. |