Toolbox allows you to perform admin operations on DataGalaxy.
- Copy attributes from a source client space to a target client space.
- Delete attributes on client space.
- Copy technologies from a source client space to a target client space.
- Copy screens from a source client space or workspace to a target client space or workspace.
- Copy glossary properties from a workspace to another.
- Delete glossary of a workspace.
- Copy dictionary objects from a workspace to another.
- Delete dictionary of a workspace.
- Copy dataprocessings from a workspace to another.
- Delete dataprocessings of a workspace.
- Copy usages from a workspace to another.
- Delete usages of a workspace.
- Copy links from a workspace to another.
For now we provide an executable file datagalaxy-toolbox.exe
which makes Toolbox usable only on Windows.
You can download it from the Assets
section of the Releases page.
If you want to use Toolbox on Mac or Linux you need to build a binary file following the development section.
- [optional arguments]
-h
,--help
- show help message --url
- URL--token
- Integration token--url-source
- URL source environnement--url-target
- URL target environnement--token-source
- Integration token from source environnement--token-target
- Integration token from target environnement--workspace-source
- Workspace source name--workspace-target
- Workspace target name--tag-value
- Filter objects on a specific tag
Toolbox checks that there is no identical attribute on the target client space before running the copy from the source. It raises an exception and stops the program if it finds duplicate attributes. To delete attributes from the target client space to allow copying run:
datagalaxy-toolbox.exe delete-attributes [-h] --url URL --token TOKEN
datagalaxy-toolbox.exe copy-attributes [-h] --url-source URL_SOURCE --url-target URL_TARGET --token-source TOKEN_SOURCE --token-target TOKEN_TARGET
datagalaxy-toolbox.exe copy-technologies [-h] --url-source URL_SOURCE --url-target URL_TARGET --token-source TOKEN_SOURCE --token-target TOKEN_TARGET
datagalaxy-toolbox.exe copy-screens [-h] --url-source URL_SOURCE [--url-target URL_TARGET] --token-source TOKEN_SOURCE [--token-target TOKEN_TARGET] [--workspace-source WORKSPACE_SOURCE] [--workspace-target WORKSPACE_TARGET]
--url-target
and --token-target
are optional if the copy is made on the same client space.
--workspace-source
is optional if the copy is made from a client space.
--workspace-target
is optional if the copy is made to a client space.
4 scenarios are possible:
- Copy screens from a client space to another client space (different client spaces)
- Copy screens from a workspace to a client space (can be on the same client space or not)
- Copy screens from a client space to a workspace (can be on the same client space or not)
- Copy screens from a workspace to another workspace (can be on the same client space or not)
datagalaxy-toolbox.exe copy-glossary [-h] --url-source URL_SOURCE --token-source TOKEN_SOURCE [--url-target URL_TARGET] [--token-target TOKEN_TARGET] --workspace-source WORKSPACE_SOURCE --workspace-target WORKSPACE_TARGET [--tag-value TAG_NAME]
--url-target
and --token-target
are optional if the copy is made on the same client space.
datagalaxy-toolbox.exe delete-glossary [-h] --url URL --token TOKEN --workspace WORKSPACE
datagalaxy-toolbox.exe copy-dictionary [-h] --url-source URL_SOURCE --token-source TOKEN_SOURCE [--url-target URL_TARGET] [--token-target TOKEN_TARGET] --workspace-source WORKSPACE_SOURCE --workspace-target WORKSPACE_TARGET [--tag-value TAG_NAME]
--url-target
and --token-target
are optional if the copy is made on the same client space.
datagalaxy-toolbox.exe delete-dictionary [-h] --url URL --token TOKEN --workspace WORKSPACE
datagalaxy-toolbox.exe copy-dataprocessings [-h] --url-source URL_SOURCE --token-source TOKEN_SOURCE [--url-target URL_TARGET] [--token-target TOKEN_TARGET] --workspace-source WORKSPACE_SOURCE --workspace-target WORKSPACE_TARGET [--tag-value TAG_NAME]
--url-target
and --token-target
are optional if the copy is made on the same client space.
datagalaxy-toolbox.exe delete-dataprocessings [-h] --url URL --token TOKEN --workspace WORKSPACE
datagalaxy-toolbox.exe copy-usages [-h] --url-source URL_SOURCE --token-source TOKEN_SOURCE [--url-target URL_TARGET] [--token-target TOKEN_TARGET] --workspace-source WORKSPACE_SOURCE --workspace-target WORKSPACE_TARGET [--tag-value TAG_NAME]
--url-target
and --token-target
are optional if the copy is made on the same client space.
datagalaxy-toolbox.exe delete-usages [-h] --url URL --token TOKEN --workspace WORKSPACE
datagalaxy-toolbox.exe copy-links [-h] --url-source URL_SOURCE --token-source TOKEN_SOURCE [--url-target URL_TARGET] [--token-target TOKEN_TARGET] --workspace-source WORKSPACE_SOURCE --workspace-target WORKSPACE_TARGET
--url-target
and --token-target
are optional if the copy is made on the same client space.
Toolbox requires:
- Python >= 3.9
- Clone the repository
- Create a virtual env in the
.venv
folder
python -m venv .venv
- activate the virtual env
source .venv/bin/activate
- Install packages
pip install -r requirements.txt
To run tests
python -m pytest
We use Flake8 as a linter
python -m flake8 .
run the command
pyinstaller -n datagalaxy-toolbox --onefile --console toolbox/__main__.py
This creates a dist
folder with the binary file.
./dist/datagalaxy-toolbox --help
This project welcomes contributions and suggestions. Please have a look at our Guidelines for contributing.
See the LICENCE file for details.