Global Configuration - VladimirSiv/pytransflow GitHub Wiki
pytransflow has several options that can be configured on a global level.
PATH_SEPARATOR- Configures a value that will be used for nested paths. Defaults to/. Flow configurationpath_separatorparameter will override it only for that flowSCHEMAS_PATH- Path of the folder where schemas are defined. Defaults to./schemas. Can be configured as relative or absolute path.FLOWS_PATH- Path of the folder where flows are defined. Defaults to./flows. Can be configured as relative or absolute path.DEFAULT_DATASET_NAME- Name of the initial default dataset. Defaults todefault.
Note: If
path_separatoris defined in a flow configuration file, it will override the global configuration for that flow only
You can use .pytransflowrc file in the root of the project or add the following
section to the pyproject.toml
.pytransflowrc
You can create .pytranflowrc file in the root of your project and define
global configurations that will be applied to the whole pytransflow library
[MASTER]
schemas_path = custom_schemas
flows_path = custom_flows
path_separator = ,
default_dataset_name = inital-dataset
pyproject.toml
For example:
[tool.pytransflow]
schemas_path = "/home/user/projects/test-pytransflow/custom_schemas"
flows_path= "/home/user/projects/test-pytransflow/custom_flows"
path_separator= ","
default_dataset_name="inital-dataset"