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.

module documentation

Undocumented

Function parse_range Parse a byte range into an interval with an exclusive end offset.
def parse_range(value: str | None, file_size: int) -> tuple[int, int] | None: (source)

Parse a byte range into an interval with an exclusive end offset.

Parameters
value:str | NoneValue of the HTTP Range header.
file_size:intSize of the requested file in bytes.
Returns
tuple[int, int] | NoneValid byte interval, or None for an invalid or unsatisfiable range.