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 cache store.

Method __post_init__ Validate the Redis configuration after initialization.
Method __validateDb Validate the db property.
Method __validateDriver Validate the driver property.
Method __validateEndpoint Validate the endpoint property.
Method __validatePassword Validate the password property.
Method __validatePort Validate the port property.
Instance Variable db Redis database index. Resolved from the REDIS_DB environment variable or defaults to 0.
Instance Variable driver The driver type. Defaults to 'redis'.
Instance Variable endpoint Redis host address. Resolved from the REDIS_HOST environment variable or defaults to '127.0.0.1'.
Instance Variable password Redis password. Resolved from the REDIS_PASSWORD environment variable or defaults to None.
Instance Variable port Redis port number. Resolved from the REDIS_PORT environment variable or defaults to 6379.

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 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 __validateEndpoint(self): (source)

Validate the endpoint property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf endpoint is neither a string nor None.
def __validatePassword(self): (source)

Validate the password property.

Returns
NoneThis method performs validation and returns None.
Raises
TypeErrorIf password is neither a string nor None.
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.

Redis database index. Resolved from the REDIS_DB environment variable or defaults to 0.

The driver type. Defaults to 'redis'.

endpoint: str | None = (source)

Redis host address. Resolved from the REDIS_HOST environment variable or defaults to '127.0.0.1'.

password: str | None = (source)

Redis password. Resolved from the REDIS_PASSWORD environment variable or defaults to None.

Redis port number. Resolved from the REDIS_PORT environment variable or defaults to 6379.