Python API for interacting with openMINDS metadata schemas
Project description
Welcome to openMINDS!
This is the repository for the generator scripts of openMINDS
These scripts allow the generation of the output formats HTML, schema.json and python from the template language used to define the openMINDS schemas.
In addition to this the python compiler allows the dynamic usage of openMINDS in your Python appication.
Example:
import generator.openminds_helper
import generator.python_compiler
helper = generator.openminds_helper.OpenMINDS_helper()
copyright = generator.python_compiler.generate(helper.core.DATA__COPYRIGHT)
copyright_schema = generator.python_compiler.generate_file(helper.core.DATA__COPYRIGHT)
copyright_schema.year = 2020
copyright_schema.holder = "somebody"
copyright_schema.save("test.json")
This example generates a copyright schema object, for which the values can be set and it can be saved as openMINDS conform json.
License
This work is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
openMINDS-0.0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for openMINDS-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c002f42ae2ebfb85eb123c6693138d47a2841bdddfcc661505845b393926892 |
|
MD5 | 8f2df1fceed3342bd0faf1ab16a49821 |
|
BLAKE2b-256 | 0fb9f091cb138b28b569ed110d145867875dba8ddbf7f8d5a5374e5c338496ce |