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

Ensure a value matches the password supplied in a sibling field.

The rule is applied to the confirmation field and compares its value against the field holding the original password.

Method __init__ Initialize the rule with the field holding the original password.
Async Method enforce Validate a field value against the referenced password field.
Class Variable __code__ confirm_password.
Class Variable __message__ Value must match the password field..
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable _other_field Name of the sibling field holding the password to match.

Inherited from Rule:

Method __init_subclass__ Require asynchronous enforcement on every rule subclass.
Async Method validate Validate the field by awaiting its asynchronous enforcement.
Instance Variable _code Machine-readable status or error code.
Instance Variable _message Override message used when validation fails.
def __init__(self, other_field: str = 'password', *, message: str | None = None): (source)

Initialize the rule with the field holding the original password.

Parameters
other_field:str, optionalName of the sibling field holding the password to match.
message:str | None, optionalOverride message used when validation fails.
Returns
NoneNo return value.
Raises
ValueErrorIf other_field is empty.
async def enforce(self, field: str, value: object, instance: object) -> bool: (source)

Validate a field value against the referenced password field.

Parameters
field:strField name associated with the value.
value:objectValue to validate.
instance:objectSchema instance holding the referenced password field.
Returns
boolReturn True when the value passes validation.
__code__: str = (source)

confirm_password.

__message__: str = (source)

Value must match the password field..

__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

_other_field: str = (source)

Name of the sibling field holding the password to match.