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 Redis(BaseEntity): (source)
Represent the configuration entity for a Redis job store.
| Method | __post |
Validate the Redis job store configuration after initialization. |
| Method | __validate |
Validate the db property. |
| Method | __validate |
Validate the driver property. |
| Method | __validate |
Validate the host property. |
| Method | __validate |
Validate the key property. |
| Method | __validate |
Validate the port property. |
| Method | __validate |
Validate the run_times_key property. |
| Class Variable | password |
Undocumented |
| Instance Variable | db |
Redis database index. Defaults to 0. |
| Instance Variable | driver |
The driver type. Defaults to 'redis'. |
| Instance Variable | host |
Redis host address. Defaults to '127.0.0.1'. |
| Instance Variable | key |
Redis key used to store the serialized job definitions. Defaults to 'scheduler:tasks'. |
| Instance Variable | port |
Redis port number. Defaults to 6379. |
| Instance Variable | run |
Redis key used to store the next-run-time index for scheduled jobs. Defaults to 'scheduler:run_times'. |
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 the Redis job store configuration after initialization.
| Returns | |
None | Validates every field against its declared type hint. |
| Raises | |
TypeError | If any property does not match its expected type. |
ValueError | If any property fails its value validation. |
Validate the db property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If db is not an integer. |
ValueError | If db is negative. |
Validate the driver property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If driver is not a string. |
ValueError | If driver is an empty string. |
Validate the host property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If host is not a string. |
ValueError | If host is an empty string. |
Validate the key property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If key is not a string. |
ValueError | If key is an empty string. |
Validate the port property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If port is not an integer. |
ValueError | If port is not between 1 and 65535. |
Validate the run_times_key property.
| Returns | |
None | This method performs validation and returns None. |
| Raises | |
TypeError | If run_times_key is not a string. |
ValueError | If run_times_key is an empty string. |