Loader
LoaderLink
The sierra.core.loader
module is responsible for loading compiled Sierra invoker scripts.
Loading an invoker
sierra.core.loader
Link
ClassesLink
SierraSideloader
Link
SierraSideloader(
client: sierra_client.SierraDevelopmentClient,
)
Bases: sierra_core_base.SierraCoreObject
A sideloader that mimics APT-like behavior for fetching and managing Python invoker scripts from GitHub sources. Handles downloading, caching, and installing .py files only.
PARAMETER | DESCRIPTION |
---|---|
client
|
A reference to the Sierra development client. |
Initialize the SierraSideloader.
PARAMETER | DESCRIPTION |
---|---|
client
|
A reference to the Sierra development client.
TYPE:
|
RAISES | DESCRIPTION |
---|---|
SierraPathError
|
If the configuration path or source file does not exist. |
AttributesLink
sources
instance-attribute
LinkFunctionsLink
populate
LinkPulls new files from all sources and caches all valid .py
scripts.
install
Linkinstall(name: str) -> None
Installs a cached .py script into the Sierra environment's script directory.
PARAMETER | DESCRIPTION |
---|---|
name
|
The name of the file to install (without
TYPE:
|
RAISES | DESCRIPTION |
---|---|
SierraCacheError
|
If the file is not found in the cache. |
search
Link
list_available
LinkLists all .py
script packages currently cached (including from disk).
RETURNS | DESCRIPTION |
---|---|
List[str]
|
Cached script names. |
info
LinkReturns metadata about a cached script.
PARAMETER | DESCRIPTION |
---|---|
name
|
Name of the cached script.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
Dict[str, Any]
|
Metadata of the script including cache entry details. |
RAISES | DESCRIPTION |
---|---|
SierraCacheError
|
If script not found in cache. |