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

Async Function _disk_file_url Resolve the public URL of a file stored on a disk.
async def _disk_file_url(app: IApplication, path: str, disk: str | None) -> str: (source)

Resolve the public URL of a file stored on a disk.

Parameters
app:IApplicationApplication container used to resolve the storage manager.
path:strDisk-relative file path (e.g. 'css/app.css').
disk:str | NoneDisk name to read from, or None for the public disk.
Returns
strPublicly accessible URL for the file.
Raises
UnsupportedStorageOperationExceptionIf the resolved disk does not expose public URLs.