Skip to main content

infrastore

Python bindings for infrastore — time-series storage for power-systems and energy simulations.

Numerical arrays are persisted in HDF5; the metadata associating each array with its owning component lives in SQLite. Identical arrays are stored once and shared through content addressing.

The wheels are self-contained: HDF5 and zlib are statically linked, so there are no system libraries to install.

Install

pip install infrastore

Quick start

from datetime import datetime, timedelta, timezone
import numpy as np
from infrastore import Store, SingleTimeSeries, OwnerCategory

store = Store.create(in_memory=True)
ts = SingleTimeSeries(
    datetime(2024, 1, 1, tzinfo=timezone.utc),
    timedelta(hours=1),
    np.arange(24, dtype=np.float64) + 100,
    "load",   # name (required)
    units="MW",
)
series_id = store.add_time_series(
    owner_id=42, owner_type="Generator",
    owner_category=OwnerCategory.Component,
    time_series=ts,   # name and units come from ts
    features={"model_year": 2030},
)
got = store.read_by_id(series_id)
assert np.array_equal(np.asarray(got.data), np.asarray(ts.data))

Features

  • One array, stored once — arrays are addressed by a SHA-256 content hash, so a series shared across components is written to disk a single time.
  • Typed, N-dimensional valuesf64, f32, i64, i32, u64, and bool, with an optional per-timestep element shape.
  • Seven time-series typesSingleTimeSeries, NonSequentialTimeSeries, and PersistentTimeSeries (a sparse step function: breakpoints, values carried forward) read+write; Deterministic, DeterministicSingleTimeSeries, Probabilistic, and Scenarios for forecasts.
  • Columnar simulation readersStaticReader / ForecastReader serve every series' value at one timestamp.
  • Association catalogs — component ↔ supplemental attribute and directed component ↔ component edges, recorded independently of time series.
  • Type stubs (.pyi), a full exception hierarchy, and keyword-only optional arguments.

Documentation

https://natlabrockies.github.io/infrastore/latest/ — see the Python guide and the Python API reference. Complete, runnable programs are indexed in the repository's Python examples.

License

BSD-3-Clause. See LICENSE.

Release files for infrastore 0.14.1

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

Built distributions (wheels)

Table of built distributions (wheels) for infrastore 0.14.1
File Interpreter ABI Platform
infrastore-0.14.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
infrastore-0.14.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
infrastore-0.14.1-cp311-abi3-macosx_14_0_arm64.whl CPython 3.11 abi3 macOS 14.0+ ARM64 Details

Total release size: 19.4 MB

Release files / infrastore-0.14.1-cp311-abi3-win_amd64.whl

Download URL infrastore-0.14.1-cp311-abi3-win_amd64.whl
Size 7.7 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
270e77971b98e3610cee8db15ac17f4a6a510ecd5c874367726c015b81811527
BLAKE2b-256 checksum
How to use checksums
f00f45a44c5fa9bcd8b295cc3ec552d1f803f1a2cd04a86d25b53d6e639ed23f
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 Sep 24, 2026.

Transparency log

Release files / infrastore-0.14.1-cp311-abi3-manylinux_2_28_x86_64.whl

Download URL infrastore-0.14.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 6.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
2ae9a092683dff3b14c622e93fa1d1db1e8a3bb97a6de3a5d6c450e15ecb5047
BLAKE2b-256 checksum
How to use checksums
6934764d07aa3a1311621585c47d4edd25228acc454998ee40ada0846b9ff214
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 Sep 24, 2026.

Transparency log

Release files / infrastore-0.14.1-cp311-abi3-macosx_14_0_arm64.whl

Download URL infrastore-0.14.1-cp311-abi3-macosx_14_0_arm64.whl
Size 5.2 MB
Tags CPython 3.11 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
2eb25146857bd2fb01fd7d8c2ab8205454aa16ca04baf0e95a07615bc65e9094
BLAKE2b-256 checksum
How to use checksums
cebcb7d6bf932a4b045aa68e24cbd32b8fa7f5b72633bca4f62b03967ad699a0
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 Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.14.1 This release

3 release files

0.14.0

3 release files

0.13.1

3 release files

0.11.0

3 release files

0.10.0

3 release files

0.9.0

3 release files

0.8.0

3 release files

0.7.0

3 release files

0.6.0

3 release files

0.5.1

3 release files

0.4.0

3 release files

0.3.0

3 release files

0.2.1

3 release files

0.2.0

3 release files

0.1.1

3 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