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 string ends with one of the given suffixes.
| Method | __init__ |
Initialize the rule with the accepted suffixes. |
| Async Method | enforce |
Validate a field value against the accepted suffixes. |
| Class Variable | __code__ |
ends_with. |
| Class Variable | __message__ |
Value must end with one of the allowed suffixes.. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | _suffixes |
Suffixes the value may end with. At least one is required. |
Inherited from Rule:
| Method | __init |
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. |
overrides
orionis.schemas.rule.Rule.__init__Initialize the rule with the accepted suffixes.
| Parameters | |
*suffixes:str | Suffixes the value may end with. At least one is required. |
message:str | None, optional | Override message used when validation fails. |
| Returns | |
None | No return value. |
| Raises | |
ValueError | If no suffix is supplied. |
overrides
orionis.schemas.rule.Rule.__slots__Declare the instance attribute slots reserved by this class.