pyirk.script
Command line interface for irk package
Module Contents
Functions
Returns the parser object which is then evaluated in main(). This is necessary for sphinx to automatically generate the cli docs. |
|
Debug function for development of core and script modules.
To interactively examine modules (builtin and others) use |
|
Motivation: When mass-inserting entities, it is easier to use a placeholder instead of unique short_key. This function replaces these placeholders with adequate unique short keys. |
|
load the module, additionally load its source, replace entities like I000[“some label”] with real entities like I7654[“some label”]. |
|
Background: see devdocs |
|
Start an interactive IPython session where the (optionally) loaded mod is available under its prefix name. Also: prepare interactive pyirk-module – a namespace for experimentally creating entities. |
API
- pyirk.script.create_parser()
Returns the parser object which is then evaluated in main(). This is necessary for sphinx to automatically generate the cli docs.
- pyirk.script.main()
- pyirk.script.process_package(pkg_path: str) Tuple[pyirk.irkloader.ModuleType, str]
- pyirk.script.process_mod(path: str, prefix: str, relative_to_workdir: bool = False) pyirk.irkloader.ModuleType
- pyirk.script.debug()
Debug function for development of core and script modules. To interactively examine modules (builtin and others) use
--interactive-session
- pyirk.script.create_auto_complete_file()
- pyirk.script.insert_keys_for_placeholders(modpath)
Motivation: When mass-inserting entities, it is easier to use a placeholder instead of unique short_key. This function replaces these placeholders with adequate unique short keys.
- pyirk.script.replace_dummy_entities_by_label(modpath)
load the module, additionally load its source, replace entities like I000[“some label”] with real entities like I7654[“some label”].
- pyirk.script.update_test_data(pkg_path)
Background: see devdocs
- pyirk.script.process_template(template_path)
- pyirk.script.path_to_ast_container(mod_path: str) pyirk.core.aux.Container
- pyirk.script.get_lines_for_short_key(short_key: str) str
- pyirk.script.interactive_session(loaded_mod, prefix)
Start an interactive IPython session where the (optionally) loaded mod is available under its prefix name. Also: prepare interactive pyirk-module – a namespace for experimentally creating entities.