This repository extends Pollination model schema to support energy models.
Python 3.6 or higher.
pip install -r requirements.txtFor only testing energy model schemas try running
python -m pytest --noconftest --ignore='tests\test_api.py' --ignore='tests\test_schema.py'Run the command below to start the application:
uvicorn app.main:app --reload
Try interactive API documentation at http://127.0.0.1:8000/docs to test the
application.
The redoc documentation is also generated from the endpoints and is available at: http://127.0.0.1:8000/redoc
- Add you new Pydantic schemas for enrgy modeling to
app/models/energy - Add a sample files for each schema to
app/models/samples - Add new tests under
testsfolder. You can reuse the objects in sample files by importing them to your test module. Seetest_schema_energy_construction.pyfor an example.
Run python ./app/models/samples/samples_to_json.py from the root directory. See app/models/samples/json for generated JSON files.