dataflow.registry.importers.tak¶
Hybrid Tools and Toolkits Importer.
This script first identifies tools using your working approach, then imports them to the database.
Functions¶
|
Determine a category name from a module path. |
|
Get or create a tool category. |
|
Get or create a tool. |
|
Get or create a toolkit. |
Import the discovered tools into the database. |
|
|
Link a tool to a toolkit. |
|
Load tools from a directory using your working approach. |
|
Load tools from a module using your working approach. |
|
Main function to run the tool importer. |
Print statistics about discovered tools. |
Module Contents¶
- dataflow.registry.importers.tak.determine_category_from_module_path(module_path)¶
Determine a category name from a module path.
- dataflow.registry.importers.tak.get_or_create_category(name, display_name=None)¶
Get or create a tool category.
- dataflow.registry.importers.tak.get_or_create_tool(name, category_id, display_name=None, description=None)¶
Get or create a tool.
- dataflow.registry.importers.tak.get_or_create_toolkit(name, display_name=None, description=None)¶
Get or create a toolkit.
- dataflow.registry.importers.tak.import_tools_to_database()¶
Import the discovered tools into the database.
- dataflow.registry.importers.tak.link_tool_to_toolkit(tool_id, toolkit_id)¶
Link a tool to a toolkit.
- dataflow.registry.importers.tak.load_tools_from_directory(directory, module_prefix, tool_type)¶
Load tools from a directory using your working approach.
- dataflow.registry.importers.tak.load_tools_from_module(module_path, tool_type)¶
Load tools from a module using your working approach.
- dataflow.registry.importers.tak.main()¶
Main function to run the tool importer.
- dataflow.registry.importers.tak.print_tool_stats()¶
Print statistics about discovered tools.