slippinj.filesystem package¶
Submodules¶
slippinj.filesystem.excel_writer module¶
slippinj.filesystem.filesystem module¶
-
class
slippinj.filesystem.filesystem.
Filesystem
(self_, *args, **kwargs)[source]¶ Bases:
object
Manage the filesystem
-
find_properties_file
(wf_folder)[source]¶ Find all the properties file inside the given folder :param wf_folder: string :return: list
-
generate_tar_file
(wf_folder, workflow_name=None)[source]¶ Generate a tar file and compress inside all the workflow code, and returns the path to the newly created file :param wf_folder: string :param workflow_name: string :return: string
-
generate_temp_dir
()[source]¶ Generate a temporary directory and return the path to it :return: string
-
slippinj.filesystem.hdfs module¶
slippinj.filesystem.yaml_configuration module¶
-
class
slippinj.filesystem.yaml_configuration.
WorkflowsYamlConfigurationWriter
(self_, *args, **kwargs)[source]¶ Bases:
object
Write the YAML configuration files needed to run the workflows
-
generate_yaml_files
(injector, tables_information, db_driver, db_host, db_port, db_user, db_name, db_password, location=None)[source]¶ Given tables and database connection information generate the YAML files and save them into provided location :param injector: Injector :param tables_information: dict :param db_driver: string :param db_host: string :param db_port: integer :param db_user: string :param db_name: string :param db_password: string :param location: string
-
-
class
slippinj.filesystem.yaml_configuration.
YamlConfiguration
(self_, *args, **kwargs)[source]¶ Bases:
object
Process YAML configuration files
-
autodiscover_config_files
(root_dir)[source]¶ Find all the YAML files inside the given directory :param root_dir: string :return: list
-