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

class StrongPassword(Rule): (source)

Constructor: StrongPassword(message)

View In Hierarchy

Ensure a string is strong enough to be used as a password.

The value must be at least 8 characters long and contain an uppercase letter, a lowercase letter and a digit.

Async Method enforce Validate a field value as a strong password.
Class Variable __code__ strong_password.
Class Variable __message__ Human-readable message associated with this operation or result.
Class Variable __slots__ Declare that this class introduces no additional instance slots.

Inherited from Rule:

Method __init__ Initialize the rule with an optional custom failure message.
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.
async def enforce(self, field: str, value: object, instance: object) -> bool: (source)

Validate a field value as a strong password.

Parameters
field:strField name associated with the value.
value:objectValue to validate.
instance:objectOwning object instance. This argument is accepted for interface compatibility.
Returns
boolReturn True when the value passes validation.
__code__: str = (source)

strong_password.

__message__ = (source)

Human-readable message associated with this operation or result.

__slots__: tuple = (source)

Declare that this class introduces no additional instance slots.