blark.dependency_store.DependencyStore
- class blark.dependency_store.DependencyStore(root: Path)[source]
 Bases:
objectA storage container for dependency configuration and loading.
Environment variable:
BLARK_TWINCAT_ROOTis required to be set for this to be functional, along with a “config.json” in that directory. This should contain information as to the supported library dependencies and where to find them.{ "libraries": { "LCLS General": { "name": "LCLS General", "versioned": false, "path": "lcls-twincat-general", "project": "LCLSGeneral.sln" }, "lcls-twincat-motion": { "name": "lcls-twincat-motion", "versioned": true, "path": "lcls-twincat-motion", "project": "lcls-twincat-motion.sln" } } }
The above would indicate that the “LCLS General” library (as named in TwinCAT) is available relative to the root directory in
lcls-twincat-general/LCLSGeneral.sln. It would also indicate that the “lcls-twincat-motion” library could be found inlcls-twincat-motion/VERSION/lcls-twincat-motion.slnwhere VERSION is the project-defined version.Methods
__init__(root)get_dependencies(plc)Get dependency projects from a PLC.
get_dependency(name[, version])Get a dependency by name and version number.
Get the global DependencyStore instance.
Load the dependency store configuration file.
Attributes
The configuration filename.
- config: DependencyStoreConfig
 
- property config_filename
 The configuration filename.
- get_dependency(name: str, version: str | None = None) List[PlcProjectMetadata][source]
 Get a dependency by name and version number.
- get_dependencies(plc: TwincatPlcProject) Generator[Tuple[DependencyVersion, PlcProjectMetadata], None, None][source]
 Get dependency projects from a PLC.
- static get_instance() DependencyStore[source]
 Get the global DependencyStore instance.