Skip to main content

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


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.2.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

openMINDS-0.0.2-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page