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

Undocumented

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__ Undocumented
Instance Variable at_time Undocumented
Instance Variable tz Undocumented
def __init__(self, at_time: time | None = None): (source)

Initialize the DailySuffixResolver with an optional rotation time.

Parameters
at_time: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:datetimeThe current datetime.
Returns
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 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'.

Undocumented

Undocumented