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
Built Distribution
File details
Details for the file openMINDS-0.0.2.tar.gz
.
File metadata
- Download URL: openMINDS-0.0.2.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c822aaf8bc1e7cf2cd7881664b81e295463069f369ccc43b87f46bcdb634d0b2 |
|
MD5 | 067bc02f9472d6a7736f830ed74ecdfe |
|
BLAKE2b-256 | cebfade9f2b32fea61f19997cb28eac6f926502b618cba632f946847ed7ecf5f |
Provenance
File details
Details for the file openMINDS-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: openMINDS-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17fcb81fee4ad0edd5ea31dec8a936dcb6f57639f186242758b760b7283fb690 |
|
MD5 | 58cdfb97258e9f010b121656b4b38bf2 |
|
BLAKE2b-256 | 310855436a5477affed264e9291df51267247269200d801f8a494fbeb135d991 |