load_infrastructure#
- eclypse.io.functions.load_infrastructure(source, using=None, *, infrastructure_context=None, registry=IORegistry(importers=mappingproxy({('application', 'docker-compose'): <class 'eclypse.io.defaults.docker_compose.DockerComposeImporter'>, ('application', 'eclypse-json'): <class 'eclypse.io.defaults.json.JSONImporter'>, ('application', 'gml'): <class 'eclypse.io.defaults.gml.GMLImporter'>, ('application', 'graphml'): <class 'eclypse.io.defaults.graphml.GraphMLImporter'>, ('application', 'node-link-json'): <class 'eclypse.io.defaults.node_link.NodeLinkImporter'>, ('application', 'tosca'): <class 'eclypse.io.defaults.tosca.TOSCAImporter'>, ('infrastructure', 'eclypse-json'): <class 'eclypse.io.defaults.json.JSONImporter'>, ('infrastructure', 'gml'): <class 'eclypse.io.defaults.gml.GMLImporter'>, ('infrastructure', 'graphml'): <class 'eclypse.io.defaults.graphml.GraphMLImporter'>, ('infrastructure', 'node-link-json'): <class 'eclypse.io.defaults.node_link.NodeLinkImporter'>, ('infrastructure', 'tosca'): <class 'eclypse.io.defaults.tosca.TOSCAImporter'>}), exporters=mappingproxy({('application', 'docker-compose'): <class 'eclypse.io.defaults.docker_compose.DockerComposeExporter'>, ('application', 'eclypse-json'): <class 'eclypse.io.defaults.json.JSONExporter'>, ('application', 'gml'): <class 'eclypse.io.defaults.gml.GMLExporter'>, ('application', 'graphml'): <class 'eclypse.io.defaults.graphml.GraphMLExporter'>, ('application', 'node-link-json'): <class 'eclypse.io.defaults.node_link.NodeLinkExporter'>, ('application', 'tosca'): <class 'eclypse.io.defaults.tosca.TOSCAExporter'>, ('infrastructure', 'eclypse-json'): <class 'eclypse.io.defaults.json.JSONExporter'>, ('infrastructure', 'gml'): <class 'eclypse.io.defaults.gml.GMLExporter'>, ('infrastructure', 'graphml'): <class 'eclypse.io.defaults.graphml.GraphMLExporter'>, ('infrastructure', 'node-link-json'): <class 'eclypse.io.defaults.node_link.NodeLinkExporter'>, ('infrastructure', 'tosca'): <class 'eclypse.io.defaults.tosca.TOSCAExporter'>})))[source]#
Import an infrastructure graph.
- Parameters:
source (str | Path) – The source path to read.
using (str | type[GraphImporter] | GraphImporter | None) – A built-in format name, custom importer class, custom importer instance, or
Nonefor suffix inference.infrastructure_context (InfrastructureContext | None) – Optional import/export customisation.
registry (IORegistry) – Registry used to resolve built-in format names.
- Returns:
The imported infrastructure.
- Return type: