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.
module documentation
Undocumented
| Function | parse |
Parse a textual moment, honouring the relative keywords. |
| Function | resolve |
Resolve a rule reference into the datetime it points at. |
| Function | to |
Coerce a value into a timezone-aware datetime. |
Parse a textual moment, honouring the relative keywords.
| Parameters | |
text:str | Date string or one of now, today, tomorrow, yesterday. |
| Returns | |
pendulum.DateTime | None | Parsed datetime, or None when the text is not a valid date. |
Resolve a rule reference into the datetime it points at.
| Parameters | |
reference:object | Field name, date string, datetime/date value, or None to use the current moment. |
instance:object | Schema instance used to resolve sibling field names. |
| Returns | |
pendulum.DateTime | None | Resolved datetime, or None when the reference is not a moment. |