Skip to main content

Open Short Term Energy forecasting library

Project description

OpenSTEF Logo

OpenSTEF

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

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)

# Install the complete framework
pip install openstef

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

# With optional features
pip install "openstef-models[lgbm]"
pip install "openstef-models[xgb-cpu]"
pip install "openstef-beam[all]"

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
git clone https://github.com/OpenSTEF/openstef.git
cd openstef
uv sync --dev

# Run tests and quality checks
uv run poe all

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

Project details


Release history Release notifications | RSS feed

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.0.0.tar.gz (3.5 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.0.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: openstef-4.0.0.tar.gz
  • Upload date:
  • Size: 3.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.0.0.tar.gz
Algorithm Hash digest
SHA256 5009abd153630224ea66931a85c2772f7fd0175e66b8530b1373e274607ee0e5
MD5 1b593be73725a0bb5ce1c3bb29a5c124
BLAKE2b-256 ee7b4ef3bd8b844bc3b2b2dfc7eb0484997197c483c42ba7eb19b1d4a097e71e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: openstef-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd82c8e7816d93150b2144c5810d2d5f4acadc5fdd3794d23e21d9c11badacef
MD5 80f790c898a519e82c3d5505f7fdb4b1
BLAKE2b-256 b3b7156964010dafcebcc2e3cafb6d38fadc19475203f250007958b1e5523d2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page