Getting started with OpenElectricity development
.env
file with your local settings. The example file contains all required variables with sensible defaults for local development.opennem/settings_schema.py
and are loaded from environment variables. Key settings include:
OPENNEM_
prefix.
Example settings from settings_schema.py:
OPENNEM_DB_HOST: Database hostname (default: “localhost”)
OPENNEM_REDIS_HOST: Redis hostname (default: “localhost”)
OPENNEM_API_HOST: API server host (default: “0.0.0.0”)
OPENNEM_API_PORT: API server port (default: 8000)
uv run ruff check .
uv run mypy .
uv run pytest