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 date is equal to or comes after a reference moment.
The reference may be a sibling field name, a parsable date string, a datetime/date value, or None to compare against the current moment.
| Method | __init__ |
Initialize the rule with the reference moment. |
| Method | enforce |
Validate a field value against the reference moment. |
| Class Variable | __code__ |
Undocumented |
| Class Variable | __message__ |
Undocumented |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _reference |
Undocumented |
Inherited from Rule:
| Async Method | enforce |
Run an explicitly asynchronous rule check without blocking the loop. |
| Method | validate |
Validate the field value and return a failure when invalid. |
| Async Method | validate |
Await the rule and describe an invalid field value. |
| Instance Variable | _code |
Undocumented |
| Instance Variable | _message |
Undocumented |
overrides
orionis.schemas.rule.Rule.__init__Initialize the rule with the reference moment.
| Parameters | |
reference:object, optional | Sibling field name, date string or datetime to compare against. Defaults to the current moment. |
message:str | None, optional | Override message used when validation fails. |
| Returns | |
None | This method initializes the instance and returns None. |