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 Email(Rule): (source)

Constructor: Email(message)

View In Hierarchy

Ensure a string is a valid email address.

The value must be a dot-separated local part of RFC 5322 characters, followed by a dotted domain. The whole address is capped at 254 characters and the local part at 64, as required by RFC 5321.

Method enforce Validate a field value as an email address.
Class Variable __code__ Undocumented
Class Variable __message__ Undocumented
Class Variable __slots__ Undocumented

Inherited from Rule:

Method __init__ Initialize the rule with an optional custom failure message.
Async Method enforceAsync Run an explicitly asynchronous rule check without blocking the loop.
Method validate Validate the field value and return a failure when invalid.
Async Method validateAsync Await the rule and describe an invalid field value.
Instance Variable _code Undocumented
Instance Variable _message Undocumented
def enforce(self, field: str, value: object, instance: object) -> bool: (source)

Validate a field value as an email address.

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)

Undocumented

__message__: str = (source)

Undocumented