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
Represent a configured storage disk.
The disk is the high-level entry point to a storage backend. It
builds ~orionis.storage.file.File and
~orionis.storage.directory.Directory objects bound to its
driver, and its convenience methods always delegate to those
objects so no logic is ever duplicated.
| Method | __init__ |
Initialize the disk with its configuration name and driver. |
| Async Method | copy |
Copy the file at source to target on this disk. |
| Async Method | delete |
Delete the file at path from this disk. |
| Method | directory |
Build a directory object for path on this disk. |
| Async Method | exists |
Check whether a file exists at path on this disk. |
| Method | file |
Build a file object for path on this disk. |
| Async Method | move |
Move the file at source to target on this disk. |
| Method | name |
Return the configuration name of the disk. |
| Async Method | put |
Write contents to path on this disk. |
| Class Variable | __slots__ |
Undocumented |
| Instance Variable | _driver |
Undocumented |
| Instance Variable | _name |
Undocumented |
Initialize the disk with its configuration name and driver.
| Parameters | |
name:str | Disk name as declared in the filesystems configuration. |
driver:IStorageDriver | Driver instance backing the disk. |
| Returns | |
None | Undocumented |
Build a directory object for path on this disk.
| Parameters | |
path:str | Root-relative directory path. The empty string denotes the disk root. |
| Returns | |
IDirectory | Directory object bound to this disk's driver. |
| Raises | |
StoragePathException | If path is invalid or escapes the disk root. |
overrides
orionis.storage.contracts.IDisk.nameReturn the configuration name of the disk.
| Returns | |
str | Disk name as declared in the filesystems configuration. |
async def put(self, path:
str, contents: bytes | str, visibility: str | None = None) -> IFile:
(source)
¶
overrides
orionis.storage.contracts.IDisk.put