Skip to main content

OpenSTEF Logo

OpenSTEF

Downloads Downloads CII Best Practices License: MPL-2.0 Python 3.12+ GitHub Release

Quality Gate Status Coverage Maintainability Rating Reliability Rating Security Rating Vulnerabilities

What is OpenSTEF

OpenSTEF (Open Short-Term Energy Forecasting) is an open-source, model-agnostic Python framework for creating short-term forecasts in the energy sector. It provides complete machine learning pipelines for data preprocessing, feature engineering, model training, probabilistic forecasting, and evaluation. Version 4.0.0 introduces a complete architectural refactor with enhanced modularity, full type safety, and modern Python development practices.

For more information, visit the OpenSTEF project page at LF Energy.

Monorepo Overview

OpenSTEF 4.0.0 is organized as a monorepo with specialized packages under the packages/ directory:

Package Purpose
openstef Meta-package installing all core components
openstef-core Core utilities, dataset types, shared types and base models
openstef-models ML models, feature engineering, data processing
openstef-beam Backtesting, Evaluation, Analysis, and Metrics
openstef-meta Meta models for OpenSTEF

How to Install

Requirements: Python ≥3.12, 64-bit OS (Windows, macOS, Linux)

# Minimal-but-runnable convenience layer (core + models with CPU XGBoost)
pip install openstef

# Everything, CPU flavour
pip install "openstef[all]"

# Or install individual packages
pip install openstef-models
pip install openstef-beam
pip install openstef-core

# Optional feature extras (additive)
pip install "openstef-models[lgbm]"
pip install "openstef-models[tuning]"
pip install "openstef-beam[all]"

Compute runtimes (pick one per package). Packages with a heavy runtime ship mutually exclusive CPU and GPU builds as conflicting extras — install one, not both:

# Foundation models (Chronos-2): CPU everywhere, GPU on CUDA Linux/Windows
pip install "openstef-foundation-models[cpu]"
pip install "openstef-foundation-models[gpu]"

# XGBoost models: CPU or GPU
pip install "openstef-models[xgb-cpu]"
pip install "openstef-models[xgb-gpu]"

The openstef meta-package always ships the CPU builds; for GPU, install the component package directly with its [gpu] extra.

Using uv (recommended for development):

uv add openstef

For the complete installation guide including troubleshooting, see the Installation Documentation.

Examples

Tutorials and usage examples are available in the examples/ folder. See the examples folder's own README.md for an overview of available examples including:

  • Forecasting quickstart
  • Feature engineering

Additional tutorials are available in the online documentation.

License

Mozilla Public License Version 2.0 - see LICENSE.md for details.

This project includes third-party libraries licensed under their respective Open-Source licenses. SPDX-License-Identifier headers show applicable licenses. License files are in the LICENSES/ directory.

Contributing

We welcome contributions to OpenSTEF 4.0!

Read our Contributing Guide - documentation for contributors including:

  • How to report bugs and suggest features
  • Documentation improvements and examples
  • Code contributions and development setup
  • Sharing datasets and real-world use cases

Quick Development Setup

# Clone and set up for development (one command installs the full CPU dev env)
git clone https://github.com/OpenSTEF/openstef.git
cd openstef
uv sync

# Run tests and quality checks
uv run poe all

GPU dev env (CUDA; Linux/Windows): uv sync --no-default-groups --group dev-gpu. Do not use --all-groups/--all-extras — the CPU and GPU runtimes conflict.

Code of Conduct: We follow the Contributor Code of Conduct to ensure a welcoming environment for all contributors.

Citations

If you use OpenSTEF in your research or publications, please cite the project. Refer to the CITATION.cff file in this repository for the preferred citation format, or use:

Contributors to the OpenSTEF project. OpenSTEF — Open Short-Term Energy Forecasting. LF Energy, 2017–2025. Available at: https://github.com/OpenSTEF/openstef

Contact

Download files

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

Source Distribution

openstef-4.3.1.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstef-4.3.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file openstef-4.3.1.tar.gz.

File metadata

  • Download URL: openstef-4.3.1.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for openstef-4.3.1.tar.gz
Algorithm Hash digest
SHA256 eb57cbccb3b28f1bf85eaa11bd68f0bdea6c205a1ac8423a475dfff22e48f983
MD5 ac540164e3c7a216181046e61000175a
BLAKE2b-256 5dfcb5b64ba19e838fb013620735196936d123e30a862e7949b262231292b757

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstef-4.3.1.tar.gz:

Publisher: release-v4.yaml on OpenSTEF/openstef

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openstef-4.3.1-py3-none-any.whl.

File metadata

  • Download URL: openstef-4.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for openstef-4.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ebd248cc3d0f3b5849b773b73fabc1b5abe04de48d308f8d1077462c78de5a7
MD5 cd2df1c51874cf90a5ebec59fff650f6
BLAKE2b-256 6fa03dbae75c0a631d197077c8ac29df4101ea09158bd4640e0115ccc8ae3991

See more details on using hashes here.

Provenance

The following attestation bundles were made for openstef-4.3.1-py3-none-any.whl:

Publisher: release-v4.yaml on OpenSTEF/openstef

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

4.3.1 This release

2 files

4.3.0

2 files

4.2.3

2 files

4.2.2

2 files

4.2.1

2 files

4.1.2

2 files

4.1.1

2 files

4.1.0

2 files

4.0.1

2 files

4.0.0

2 files

3.4.93

2 files

3.4.92

2 files

3.4.91

2 files

3.4.90

2 files

3.4.89

2 files

3.4.88

2 files

3.4.87

2 files

3.4.86

2 files

3.4.85

2 files

3.4.83

2 files

3.4.80

2 files

3.4.79

2 files

3.4.78

2 files

3.4.77

2 files

3.4.76

2 files

3.4.75

2 files

3.4.74

2 files

3.4.73

2 files

3.4.72

2 files

3.4.70

2 files

3.4.69

2 files

3.4.68

2 files

3.4.67

2 files

3.4.66

2 files

3.4.65

2 files

3.4.64

2 files

3.4.63

2 files

3.4.62

2 files

3.4.61

2 files

3.4.60

2 files

3.4.59

2 files

3.4.58

2 files

3.4.57

2 files

3.4.56

2 files

3.4.55

2 files

3.4.54

2 files

3.4.53

2 files

3.4.52

2 files

3.4.51

2 files

3.4.50

2 files

3.4.49

2 files

3.4.48

2 files

3.4.46

2 files

3.4.45

2 files

3.4.44

2 files

3.4.43

2 files

3.4.42

2 files

3.4.40

2 files

3.4.39

2 files

3.4.37

2 files

3.4.35

2 files

3.4.33

2 files

3.4.32

2 files

3.4.31

2 files

3.4.30

2 files

3.4.29

2 files

3.4.28

2 files

3.4.27

2 files

3.4.26

2 files

3.4.25

2 files

3.4.24

2 files

3.4.23

2 files

3.4.22

2 files

3.4.21

2 files

3.4.20

2 files

3.4.19

2 files

3.4.18

2 files

3.4.17

2 files

3.4.16

2 files

3.4.15

2 files

3.4.14

2 files

3.4.13

2 files

3.4.12

2 files

3.4.11

2 files

3.4.10

2 files

3.4.9

2 files

3.4.8

2 files

3.4.7

2 files

3.4.6

2 files

3.4.5

2 files

3.4.4

2 files

3.4.2

2 files

3.4.1

2 files

3.3.15

2 files

3.3.14

2 files

3.3.13

2 files

3.3.12

2 files

3.3.11

2 files

3.3.9

2 files

3.3.8

2 files

3.3.7

2 files

3.3.6

2 files

3.3.5

2 files

3.3.3

2 files

3.3.1

2 files

3.2.78

2 files

3.2.77

2 files

3.2.76

2 files

3.2.75

2 files

3.2.74

2 files

3.2.73

2 files

3.2.72

2 files

3.2.71

2 files

3.2.70

2 files

3.2.69

2 files

3.2.67

2 files

3.2.66

2 files

3.2.64

2 files

3.2.63

2 files

3.2.62

2 files

3.2.61

2 files

3.2.60

2 files

3.2.59

2 files

3.2.58

2 files

3.2.57

2 files

3.2.56

2 files

3.2.55

2 files

3.2.54

2 files

3.2.53

2 files

3.2.52

2 files

3.2.51

2 files

3.2.50

2 files

3.2.49

2 files

3.2.48

2 files

3.2.47

2 files

3.2.46

2 files

3.2.45

2 files

3.2.44

2 files

3.2.43

2 files

3.2.42

2 files

3.2.41

2 files

3.2.40

2 files

3.2.39

2 files

3.2.38

2 files

3.2.37

2 files

3.2.36

2 files

3.2.35

2 files

3.2.34

2 files

3.2.33

2 files

3.2.32

2 files

3.2.31

2 files

3.2.30

2 files

3.2.29

2 files

3.2.28

2 files

3.2.26

2 files

3.2.25

2 files

3.2.24

2 files

3.2.22

2 files

3.2.21

2 files

3.2.20

2 files

3.2.19

2 files

3.2.18

2 files

3.2.17

2 files

3.2.16

2 files

3.2.15

2 files

3.2.14

2 files

3.2.13

2 files

3.2.12

2 files

3.2.11

2 files

3.2.10

2 files

3.2.9

2 files

3.2.8

2 files

3.2.7

2 files

3.2.6

2 files

3.2.4

2 files

3.2.3

2 files

3.2.2

2 files

3.2.1

2 files

3.2.0

2 files

3.1.7

2 files

3.1.6

2 files

3.1.5

2 files

3.1.4

2 files

3.1.3

2 files

3.1.2

2 files

3.1.1

2 files

3.1.0

2 files

3.0.5

2 files

3.0.4

2 files

3.0.3

2 files

3.0.2

2 files

3.0.1

2 files

3.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page