Open Energy Platform (OEP) - metadata schemas, examples and templates package
Project description
OpenEnergyPlatform - Metadata
OEP metadata schemata, examples and templates package
License / Copyright
This repository is licensed under MIT License (MIT)
Installation
pip install oep-metadata
Usage Examples
from metadata.v140.example import METADATA_V140_EXAMPLE
print(METADATA_V140_EXAMPLE)
from metadata.v140.schema import METADATA_V140_SCHEMA
print(METADATA_V140_SCHEMA)
from metadata.v140.template import METADATA_V140_TEMPLATE
print(METADATA_V140_TEMPLATE)
Development
Example for activating virtualenv and install development dependencies:
- Create virtualenv in root folder of repo
python -m venv venv
-
Activate virtualenv
Linux:
. venv/bin/activate
Windows:
. venv/scripts/activate
-
Install requirements
pip install -r requirements.txt
Run tests locally (after above steps):
Short:
pytest
Complete:
tox -v
If a Python interpreter version is missing:
Linux (Ubuntu):
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
# Install only missing interpreters:
sudo apt-get install python3.6
sudo apt-get install python3.7
Make PyPI release:
First bump version in setup.py, then:
python3 setup.py sdist bdist_wheel
twine upload dist/*
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
oep-metadata-1.0.1.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file oep-metadata-1.0.1.tar.gz
.
File metadata
- Download URL: oep-metadata-1.0.1.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4cad2c07a3f5eaae95dc76be018b1a469cf1710e32b33023da1ce195f1b3b0c |
|
MD5 | a43eb7ecd083b05a27ab567cdea0110d |
|
BLAKE2b-256 | ce4222d4e2fbaffe10493dacebd09010f46f6edbf6afed22408c0da5662646f6 |
File details
Details for the file oep_metadata-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: oep_metadata-1.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa0f297139de2fd12e71860adc35d9f657ccb4be0ee66b9e059f04d999125433 |
|
MD5 | 29693549701cba43416c1ae1ac0966e4 |
|
BLAKE2b-256 | e47ba2ec15f872e3ee10f2e92abb5156fe99fca29e2fbb74d6a730c81d752b29 |