The package is published on PyPI.
$ pip install exchange-metadata-converter
To install the package from source code, run
$ git clone https://github.com/CODAIT/exchange-metadata-converter.git
$ cd exchange-metadata-converter
$ pip install .
The package should pass flake8 and the unit tests in the /tests
directory.
$ pip install -r test_requirements.txt
$ flake8 .
$ python -m unittest tests/*.py
Display help:
$ python metadata_converter/apply.py -h
Replace {{...}}
placeholders in my.template
with values from my.yaml
. The completed template is displayed on STDOUT.
$ python metadata_converter/apply.py my.yaml my.template
Replace {{...}}
placeholders in my.template
with values from my.yaml
. The completed template is stored in my_completed.template
.
$ python metadata_converter/apply.py my.yaml my.template -o my_completed.template
See example source code in examples/.
Example template files for DLF and OpenAIHub can be found in the templates/ directory.
Descriptor files for DAX data sets can be found in the dax-data-set-descriptors/ directory.