siibra.configuration
Handles reconfiguration management and building instances
Submodules
Package Contents
Classes
Provides access to siibra configurations stored in different places, |
- class siibra.configuration.Configuration
Provides access to siibra configurations stored in different places, and on request builds preconfigured objects from selected subfolders of the the configuration.
Configuration repositories and detected preconfiguration spec files are stored globally as class variables and shared by Configuration instances.
- property folders
- CONFIG_CONNECTORS: List[siibra.retrieval.repositories.RepositoryConnector]
- CONFIG_EXTENSIONS = []
- CONFIG_REPOS = [(), ()]
- __getitem__(folder: str)
- build_objects(folder: str, **kwargs)
Build the preconfigured objects of the specified class, if any.
- classmethod extend_configuration(conn: str | siibra.retrieval.repositories.RepositoryConnector)
- static get_folders(connector: siibra.retrieval.repositories.RepositoryConnector)
- classmethod register_cleanup(func)
Register an arbitrary function that should be executed when the configuration is changed, e.g. with use_configuration().
- classmethod use_configuration(conn: str | siibra.retrieval.repositories.RepositoryConnector)