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 LessThanOrEqualField(Rule): (source)
Constructor: LessThanOrEqualField(other_field, message)
Ensure a value is less than or equal to a sibling field.
Both values are compared using the same size semantics: numbers by magnitude, strings and collections by length, and uploaded files by their size in kilobytes.
| Method | __init__ |
Initialize the rule with the field to compare against. |
| Async Method | enforce |
Validate a field value against the compared field. |
| Class Variable | __code__ |
lte. |
| Class Variable | __message__ |
Value must be less than or equal to the compared field.. |
| Class Variable | __slots__ |
Declare the instance attribute slots reserved by this class. |
| Instance Variable | _other |
Name of the sibling field holding the upper bound. |
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.__slots__Declare the instance attribute slots reserved by this class.