Skip to main content

liander-open-data

PyPI Python License

A lightweight SQLite database and Python API for the Liander open data SBI load profiles: 15-minute electricity profiles per SBI code (Dutch Standard Industrial Classification), together with Liander's dictionary of the recommended profile per SBI code.

  • One portable .db file holding all profiles and the SBI dictionary, which any SQLite tool can open.
  • A small Python API that returns pandas DataFrames.
  • A liander-open-data command line tool.
  • The SBI dictionary (1,427 codes) ships with the package and works without any download.

Installation

pip install liander-open-data
# optional extras: read the original .xlsx dictionary / export Parquet
pip install "liander-open-data[excel,parquet]"

Quick start

Build the database once. The first time, this downloads the profiles from Liander (~390 MB zip, cached for later) and takes about 1-2 minutes:

liander-open-data build

If you already have the <SBI code>.csv files, pass their folder instead: liander-open-data build path/to/Profiles.

Then query it from Python:

from liander_open_data import ProfileDatabase

with ProfileDatabase("liander_profiles.db") as db:
    db.lookup("8411")                        # dictionary entry for an SBI code
    df = db.get_profile("8411", columns=["mean", "p90"])
    rec = db.recommended_profile("84111")    # Liander's recommended profile
    wide = db.get_profiles(["01", "8411"], column="mean", start="2023-06-01")

Or from the command line:

liander-open-data lookup 8411
liander-open-data search onderwijs --with-profile
liander-open-data export 8411 -o 8411.csv --columns mean p90

Or with plain SQL:

SELECT code, AVG(mean) AS avg_load
FROM profile_timeseries
WHERE timestamp BETWEEN '2023-07-01' AND '2023-08-01'
GROUP BY code ORDER BY avg_load DESC;

Documentation

Full documentation, covering the data model, CLI reference, API reference and the release guide, is in the docs/ folder. To browse it as a website locally, run uv run mkdocs serve.

Development

uv sync --all-groups
uv run pytest
uv run mkdocs serve      # live documentation preview

Data and license

The code is released under the MIT license. The profiles and SBI dictionary are published by Liander N.V. as open data; check Liander's terms before redistributing them.

Metadata

Release files for liander-open-data 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liander-open-data 0.2.0
File Size Uploaded
liander_open_data-0.2.0.tar.gz 56.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for liander-open-data 0.2.0
File Interpreter ABI Platform
liander_open_data-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 102.3 kB

Release files / liander_open_data-0.2.0.tar.gz

Download URL liander_open_data-0.2.0.tar.gz
Size 56.3 kB
Tags Source
SHA-256 checksum
How to use checksums
f20b9120a83465a21a16e37ac5f5a58fffde6f677cba78de5af4124fc9955643
BLAKE2b-256 checksum
How to use checksums
1b0b12cb7269327d2f50189aa77d9749a7d90702acceb8441277b92224ea94a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / liander_open_data-0.2.0-py3-none-any.whl

Download URL liander_open_data-0.2.0-py3-none-any.whl
Size 46.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28257931ee128cecaa0b2ca244033b984623f321799493d34836f53e2e5b9cc6
BLAKE2b-256 checksum
How to use checksums
9cbb00b4570266388bacaf10e1d65e874d988e5013d2c1aadefdbfa22692cc03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release 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