ORIONIS API REFERENCE

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

Resolve log timestamps in the active application timezone.

Set tz to pin a resolver to a particular zone.

Static Method _upcoming Check whether a proposed boundary exists and falls after the current time.
Method __init__ Initialize the resolver with the application's default timezone.
Method _local Express a timestamp in the resolver's timezone.
Method tz.setter Set the timezone override for this resolver.
Class Variable __slots__ Declare that this class introduces no additional instance slots.
Instance Variable _zone Store the rotation zone override, or None to use the application zone.
Property tz Return the active rotation zone.

Inherited from SuffixResolver:

Method getNextRotationTime Compute the next rotation time.
Method getSuffix Return the suffix based on the rotation type.
def _upcoming(candidate: datetime, current: datetime) -> bool: (source)

Check whether a proposed boundary exists and falls after the current time.

Parameters
candidate:datetime.datetimeProposed timezone-aware local boundary.
current:datetime.datetimeTimezone-aware reference instant.
Returns
boolTrue when the candidate's wall time exists and its instant is later.
def _local(self, value: datetime | None) -> datetime: (source)

Express a timestamp in the resolver's timezone.

Parameters
value:datetime.datetime or NoneAware instant, naive local wall time, or None for the current time.
Returns
datetime.datetimeTimezone-aware local datetime.
def tz(self, value: tzinfo | None): (source)

Set the timezone override for this resolver.

Parameters
value:datetime.tzinfo or NoneRotation zone, or None to resume following application settings.
Returns
NoneApply the selected timezone policy to subsequent conversions.

Store the rotation zone override, or None to use the application zone.

Return the active rotation zone.

Returns
datetime.tzinfoExplicit override when set, otherwise the current application zone.