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.
Undocumented
| Function | __getattr__ |
Resolve and cache a legacy driver helper name. |
| Function | _directory |
Yield every directory prefix implied by key down to base. |
| Function | assert |
Validate a stream mode against the supported binary modes. |
| Function | derive |
Derive the directory paths implied by object keys under base. |
| Function | filter |
Select the object keys that represent files under base. |
| Function | import |
Import an optional SDK module required by a storage driver. |
| Function | resolve |
Resolve the local target path for a download operation. |
| Constant | _ALLOWED |
Undocumented |
| Constant | _LEGACY |
Undocumented |
Resolve and cache a legacy driver helper name.
| Parameters | |
name:str | Attribute requested from this module. |
| Returns | |
object | Existing helper function bound to the requested name. |
| Raises | |
AttributeError | If the requested name is not a compatibility export. |
Yield every directory prefix implied by key down to base.
Markers (keys ending with /) name a directory directly, while file keys imply their parent chain.
| Parameters | |
key:str | Object key, relative to the disk root. |
base:str | Canonical directory path acting as the traversal floor. |
| Returns | |
Iterator[ | Undocumented |
| Yields | |
str | Directory paths between key and base, exclusive. |
Validate a stream mode against the supported binary modes.
| Parameters | |
mode:str | Mode requested by the caller. |
| Returns | |
None | Undocumented |
| Raises | |
UnsupportedStorageOperationException | If mode is not one of 'rb', 'wb', 'ab', 'rb+', 'wb+', or 'ab+'. |
Derive the directory paths implied by object keys under base.
Object stores have no physical directories: prefixes are inferred from the stored keys, and keys ending with / act as explicit directory markers.
| Parameters | |
keys:Iterable[str] | Object keys, relative to the disk root. |
base:str | Canonical directory path acting as the listing root. The empty string denotes the disk root. |
recursive:bool | When True, include all nested directories. |
| Returns | |
list[str] | Sorted directory paths under base. |
Select the object keys that represent files under base.
Keys ending with / are treated as directory markers and are always excluded.
| Parameters | |
keys:Iterable[str] | Object keys, relative to the disk root. |
base:str | Canonical directory path acting as the listing root. The empty string denotes the disk root. |
recursive:bool | When True, include files from all nested prefixes. |
| Returns | |
list[str] | Sorted file keys under base. |
Import an optional SDK module required by a storage driver.
Cloud drivers rely on the official SDK of each platform, which is not installed with the framework. This helper performs the import lazily and converts a missing package into a descriptive storage exception with installation instructions.
| Parameters | |
module:str | Dotted module path to import (e.g. 'boto3'). |
package:str | PyPI package that provides the module (e.g. 'boto3'). |
extra:str | Orionis extra that pulls the package (e.g. 's3'), used to suggest uv add 'orionis[extra]'. |
| Returns | |
ModuleType | The imported module. |
| Raises | |
MissingStorageDependencyException | If the package is not installed in the active environment. |
Resolve the local target path for a download operation.
When destination points to an existing directory, the file keeps its original name inside that directory. Missing parent directories are created.
| Parameters | |
normalized:str | Canonical root-relative path of the remote file. |
destination:str | Path | Local target file or existing directory. |
| Returns | |
Path | Local path where the file must be written. |
Undocumented
| Value |
|