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 HourlySuffixResolver(SuffixResolver): (source)

Constructor: HourlySuffixResolver()

View In Hierarchy

Undocumented

Method __init__ Initialize the HourlySuffixResolver.
Method getNextRotationTime Calculate the next rotation time rounded to the next hour.
Method getSuffix Generate a suffix string for the given datetime in hourly format.
Class Variable __slots__ Undocumented
Instance Variable tz Undocumented
def __init__(self): (source)

Initialize the HourlySuffixResolver.

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

Calculate the next rotation time rounded to the next hour.

Parameters
current_time:datetimeThe current datetime to base the next rotation time on.
Returns
datetimeThe datetime object representing the next rotation time at the start of the next hour.
def getSuffix(self, dt: datetime | None = None) -> str: (source)

Generate a suffix string for the given datetime in hourly format.

Parameters
dt:datetime or None, optionalThe datetime object to generate the suffix for. If None, uses the current local datetime.
Returns
strThe formatted suffix string in the form 'YYYY-MM-DD_HH'.

Undocumented