Library and command-line tool to convert Sigma2 Metacenter projects to ro-crates.
Can be run even without installing, by first downloading the code, then doing oine of:
- entering the src-directory and executing
python -m mas2rocrate
- adding src to $PYTHONPATH then executing
python -m mas2rocrate
If installed it can be executed with both python -m mas2rocrate
as well as mas2rocrate
.
Install with pip: pip install mas2rocrate
The endpoint is not included with the script. It needs authentication via a username and token. These can be put in a config-file or directly as arguments to the script.
Example config file:
endpoint = https://WHATEVER_URL username = USERNAME token = TOKEN
The config is searched for in the following files, in prioritized order:
$PWD/.mas2rocrate.toml $HOME/.mas2rocrate.toml $XDG_CONFIG_HOME/mas2rocrate.toml /usr/local/etc/mas2rocrate.toml /etc/mas2rocrate.toml
Names of persons are encoded in base 32 to serve as an identifier, since the Sigma2 Metacenter do not use ORCID or similar identification standards.