ORIONIS API REFERENCE

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 configuration entity for a Redis job store.

Method __post_init__ Validate the Redis job store configuration after initialization.
Method __validateDb Validate the db property.
Method __validateDriver Validate the driver property.
Method __validateHost Validate the host property.
Method __validateKey Validate the key property.
Method __validatePort Validate the port property.
Method __validateRunTimesKey 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_times_key Redis key used to store the next-run-time index for scheduled jobs. Defaults to 'scheduler:run_times'.

Inherited from BaseEntity:

Class Method _cachedFieldMetadata Retrieve field definitions and normalized types cached by class.
Method getFields Describe field names, normalized types, defaults, and metadata.
Method toDict Convert the dataclass instance to a recursively copied dictionary.
Class Variable __slots__ Undocumented
def __post_init__(self): (source)

Validate the Redis job store configuration after initialization.

Returns
NoneValidates every field against its declared type hint.
Raises
TypeErrorIf any property does not match its expected type.
ValueErrorIf any property fails its value validation.
def __validateDb(self): (source)

Validate the db property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf db is not an integer.
ValueErrorIf db is negative.
def __validateDriver(self): (source)

Validate the driver property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf driver is not a string.
ValueErrorIf driver is an empty string.
def __validateHost(self): (source)

Validate the host property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf host is not a string.
ValueErrorIf host is an empty string.
def __validateKey(self): (source)

Validate the key property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf key is not a string.
ValueErrorIf key is an empty string.
def __validatePort(self): (source)

Validate the port property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf port is not an integer.
ValueErrorIf port is not between 1 and 65535.
def __validateRunTimesKey(self): (source)

Validate the run_times_key property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf run_times_key is not a string.
ValueErrorIf run_times_key is an empty string.
password: str | None = (source)

Undocumented

Redis database index. Defaults to 0.

The driver type. Defaults to 'redis'.

Redis host address. Defaults to '127.0.0.1'.

Redis key used to store the serialized job definitions. Defaults to 'scheduler:tasks'.

Redis port number. Defaults to 6379.

run_times_key: str = (source)

Redis key used to store the next-run-time index for scheduled jobs. Defaults to 'scheduler:run_times'.