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

Resolve log suffixes for configured time chunks.

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__ Declare the instance attribute slots reserved by this class.
Instance Variable _counter Counter value used by ChunkedSuffixResolver.
Instance Variable _lock Lock protecting concurrent access to shared state.
Instance Variable tz Tz produced by DateTime.getZoneInfo.
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:datetime.datetimeThe current datetime.
Returns
datetime.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.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'.
__slots__: tuple[str, ...] = (source)

Declare the instance attribute slots reserved by this class.

_counter: int = (source)

Counter value used by ChunkedSuffixResolver.

Lock protecting concurrent access to shared state.

Tz produced by DateTime.getZoneInfo.