netqasm.runtime.env¶
Tools for dealing with files related to NetQASM application execution.
-
netqasm.runtime.env.
load_app_config_file
(app_dir, app_name)¶ - Return type
Any
-
netqasm.runtime.env.
get_roles_config_path
(app_dir)¶
-
netqasm.runtime.env.
load_roles_config
(roles_config_file)¶
-
netqasm.runtime.env.
load_app_files
(app_dir)¶ - Return type
Dict
[str
,str
]
-
netqasm.runtime.env.
get_log_dir
(app_dir)¶
-
netqasm.runtime.env.
get_timed_log_dir
(log_dir)¶
-
netqasm.runtime.env.
get_post_function_path
(app_dir)¶
-
netqasm.runtime.env.
load_post_function
(post_function_file)¶
-
netqasm.runtime.env.
get_results_path
(timed_log_dir)¶
-
netqasm.runtime.env.
new_folder
(path, template='teleport', quiet=False)¶ Used by the CLI to create an app folder template
- Parameters
path (str) – Path to the directory
template (str) – Which pre-defined app to use as template
quiet (bool) – Whether to print info to stdout or not (default False)
-
netqasm.runtime.env.
init_folder
(path, quiet=False)¶ Used by the CLI to initialize a directory by adding missing config files.
- Parameters
path (str) – Path to the directory
quiet (bool) – Whether to print info to stdout or not (default False)
-
netqasm.runtime.env.
file_creation_notify
(func)¶ Decorator for notification about file creation
-
netqasm.runtime.env.
get_example_apps
()¶