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

class ChunkedSuffixResolver(SuffixResolver): (source)

Constructor: ChunkedSuffixResolver()

View In Hierarchy

Undocumented

Method __init__ Initialize the ChunkedSuffixResolver.
Method getNextRotationTime Compute the next rotation time for the log file.
Method getSuffix Generate a unique suffix for the log file.
Class Variable __slots__ Undocumented
Instance Variable _counter Undocumented
Instance Variable _lock Undocumented
Instance Variable tz Undocumented
def __init__(self): (source)

Initialize the ChunkedSuffixResolver.

Sets up the counter, thread lock, and timezone for suffix generation.

Returns
NoneThis method does not return a value.
def getNextRotationTime(self, current_time: datetime) -> datetime: (source)

Compute the next rotation time for the log file.

Parameters
current_time:datetimeThe current datetime.
Returns
datetimeThe next rotation time. For size-based rotation, this is current_time plus one hour.
def getSuffix(self, dt: datetime | None = None) -> str: (source)

Generate a unique suffix for the log file.

Parameters
dt:datetime or None, optionalThe datetime to use for the suffix. If None, uses current time.
Returns
strThe generated suffix in the format 'YYYYMMDD_HHMMSS_counter'.
_counter: int = (source)

Undocumented

Undocumented

Undocumented