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 values — f64, f32, i64, i32, u64, and bool, with an optional per-timestep element shape.
  • Seven time-series types — SingleTimeSeries, NonSequentialTimeSeries, and PersistentTimeSeries (a sparse step function: breakpoints, values carried forward) read+write; Deterministic, DeterministicSingleTimeSeries, Probabilistic, and Scenarios for forecasts.
  • Columnar simulation readers — StaticReader / 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.

Metadata

Release files for infrastore 0.15.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.15.1
File Interpreter ABI Platform
infrastore-0.15.1-cp311-abi3-win_amd64.whl CPython 3.11 abi3 Windows x86-64 Details
infrastore-0.15.1-cp311-abi3-manylinux_2_28_x86_64.whl CPython 3.11 abi3 Linux glibc 2.28+ x86-64 Details
infrastore-0.15.1-cp311-abi3-macosx_14_0_arm64.whl CPython 3.11 abi3 macOS 14.0+ ARM64 Details

Total release size: 20.0 MB

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

Download URL infrastore-0.15.1-cp311-abi3-win_amd64.whl
Size 7.9 MB
Tags CPython 3.11 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
9ec2ee4541607cf005858273ef59c6a53dbcda8a99ccd7befc1038b0a627a1ed
BLAKE2b-256 checksum
How to use checksums
e35c0a1bbe9f1fb7c5285caf56a26eb108f4695cf6b944f3b24a25b4a5f53961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

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

Download URL infrastore-0.15.1-cp311-abi3-manylinux_2_28_x86_64.whl
Size 6.6 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
d824e3ffd025c3e97ea4417785e5c0d1546eb9f78cc15d496b7681fccd65e2e6
BLAKE2b-256 checksum
How to use checksums
6a9524f5be55582b0aae0ca74206e14243dda17155bbb90b443b197e3856b21d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

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

Download URL infrastore-0.15.1-cp311-abi3-macosx_14_0_arm64.whl
Size 5.4 MB
Tags CPython 3.11 abi3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
044e8db183484986ef0b21d7b383c753fba49d11cd651b93fffa618913a592d9
BLAKE2b-256 checksum
How to use checksums
6c4eef0972e596385a59ac35b6d9834332fe4633cdf925e171f903f10f305dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

Security for infrastore 0.15.1

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.

Full provenance

All 3 files in this release have been uploaded with provenance metadata.

Select from 3 files

Attestation for infrastore-0.15.1-cp311-abi3-win_amd64.whl

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 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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