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
Reject exactly the values accepted by Empty.
None, blank strings, zero, False and zero-length values are rejected. Uploaded files require a non-zero byte size; unsized iterables are not consumed and are considered present.
| Async Method | enforce |
Check that a field value is not empty. |
| Class Variable | __code__ |
no_empty. |
| Class Variable | __message__ |
Default message reported for an empty value. |
| 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 |
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.__slots__Declare that this class introduces no additional instance slots.