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
class HTTPRateLimit(BaseEntity): (source)
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 |
Application namespace for Redis quota keys. |
| Instance Variable | rate |
Bound Redis connect and socket operations in seconds. |
| Instance Variable | rate |
Redis connection URL, used only by the Redis store. |
| 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 | get |
Describe field names, normalized types, defaults, and metadata. |
| Method | to |
Convert the dataclass instance to a recursively copied dictionary. |
| Class Variable | __slots__ |
Undocumented |
Validate rate-limiting fields.
| Returns | |
None | Undocumented |
| 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 | Undocumented |
| 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. |