SQLAlchemy module to create ORM, read from data model in open-energy-metadata(oem-v1.4.0) JSON format
Project description
OEM to ORM
Create database tables (and schema) from oemetadata json file(s)
Usage:
Keep in mind the current state is not fully tested. The code is still quit error prone f.e. the postgres types are not fully supported by the oedialct - work in progress.
To use this tool you need to be signed up on the OEP.
For security reasons, tables can only be created in existing schemas and just in the schemas "model_draft" and "sandbox".
Step-by-Step:
- Create env from requirements.txt, and activate
- Put the metadata file in the folder metadata or put your own folder in this directory
- execute the following in a cmd:
python oep_oedialect_oem2orm.py
- Provide credentials and folder name in prompt
- The table will be created
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
oem2orm-0.1.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
oem2orm-0.1.0-py3-none-any.whl
(17.2 kB
view hashes)