Skip to main content

Open Energy Platform (OEP) - metadata schemas, examples and templates package

Project description

OpenEnergyPlatform

OpenEnergyPlatform - Metadata

OEP metadata schemata, examples and templates package

Build Status

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:

  1. Create virtualenv in root folder of repo

python -m venv venv

  1. Activate virtualenv

    Linux:

    . venv/bin/activate

    Windows:

    . venv/scripts/activate

  2. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for oep-metadata, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size oep_metadata-1.0.1-py3-none-any.whl (7.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size oep-metadata-1.0.1.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page