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 suffixes for daily rotation windows.

Method __init__ Initialize the DailySuffixResolver with an optional rotation time.
Method getNextRotationTime Calculate the next log rotation datetime.
Method getSuffix Generate a date-based suffix for log files.
Class Variable __slots__ Declare the instance attribute slots reserved by this class.
Instance Variable at_time The time of day when log rotation should occur. Defaults to midnight.
Instance Variable tz Tz produced by DateTime.getZoneInfo.
def __init__(self, at_time: time | None = None): (source)

Initialize the DailySuffixResolver with an optional rotation time.

Parameters
at_time:datetime.time or None, optionalThe time of day when log rotation should occur. Defaults to midnight.
Returns
NoneThis method does not return a value.
def getNextRotationTime(self, current_time: datetime) -> datetime: (source)

Calculate the next log rotation datetime.

Parameters
current_time:datetime.datetimeThe current instant. Naive values use the resolver timezone.
Returns
datetime.datetimeThe datetime when the next log rotation should occur.
def getSuffix(self, dt: datetime | None = None) -> str: (source)

Generate a date-based suffix for log files.

Parameters
dt:datetime.datetime or None, optionalThe datetime to use for generating the suffix. If None, uses current local datetime.
Returns
strThe date suffix in the format 'YYYY-MM-DD'.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

The time of day when log rotation should occur. Defaults to midnight.

Tz produced by DateTime.getZoneInfo.