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
Define the contract for a configured storage disk.
A disk is the entry point to a storage backend. It builds
~orionis.storage.contracts.file.IFile and
~orionis.storage.contracts.directory.IDirectory objects
bound to its driver and offers a small set of convenience methods
that always delegate to those objects.
| 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 |
overridden in
orionis.storage.DiskBuild 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. |
overridden in
orionis.storage.DiskReturn the configuration name of the disk.
| Returns | |
str | Disk name as declared in the filesystems configuration. |