synapse.tools.storm.pkg package
Submodules
synapse.tools.storm.pkg.doc module
synapse.tools.storm.pkg.gen module
- synapse.tools.storm.pkg.gen.loadPkgProto(path, opticdir=None, no_docs=False, readonly=False)[source]
Get a Storm Package definition from disk.
- Parameters:
path (str) – Path to the package .yaml file on disk.
opticdir (str) – Path to optional Optic module code to add to the Storm Package.
no_docs (bool) – If true, omit inline documentation content if it is not present on disk.
readonly (bool) – If set, open files in read-only mode. If files are missing, that will raise a NoSuchFile exception.
- Returns:
A Storm package definition.
- Return type:
dict
- synapse.tools.storm.pkg.gen.tryLoadPkgProto(fp, opticdir=None, readonly=False)[source]
Try to get a Storm Package prototype from disk with or without inline documentation.
- Parameters:
fp (str) – Path to the package .yaml file on disk.
opticdir (str) – Path to optional Optic module code to add to the Storm Package.
readonly (bool) – If set, open files in read-only mode. If files are missing, that will raise a NoSuchFile exception.
- Returns:
A Storm package definition.
- Return type:
dict