/enershare-twinp2g-db

A constantly updated database of energy-related datasets originating from IPTO, ENTSO-E, DESFA, and ENTSO-G

Primary LanguagePythonOtherNOASSERTION

Greek Energy database [WIP]

This is a Dagster project scaffolded with dagster project scaffold.

Getting started

First, install your Dagster code location as a Python package. By using the --editable flag, pip will install your Python package in "editable mode" so that as you develop, local code changes will automatically apply.

pip install -e ".[dev]"

Then, start the Dagster UI web server:

dagster dev

Open http://localhost:3000 with your browser to see the project.

You can start writing assets in diplwmatikh/assets.py. The assets are automatically loaded into the Dagster code location as you define them.

Development

Adding new Python dependencies

You can specify new Python dependencies in setup.py.

Unit testing

Tests are in the diplwmatikh_tests directory and you can run tests using pytest:

pytest diplwmatikh_tests

Schedules and sensors

If you want to enable Dagster Schedules or Sensors for your jobs, the Dagster Daemon process must be running. This is done automatically when you run dagster dev.

Once your Dagster Daemon is running, you can start turning on schedules and sensors for your jobs.

Dockerized deployment

docker compose build and docker compose up instantiate a container based deployment of the project