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, andbool, with an optional per-timestep element shape. - Seven time-series types —
SingleTimeSeries,NonSequentialTimeSeries, andPersistentTimeSeries(a sparse step function: breakpoints, values carried forward) read+write;Deterministic,DeterministicSingleTimeSeries,Probabilistic, andScenariosfor forecasts. - Columnar simulation readers —
StaticReader/ForecastReaderserve 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)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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 logRelease 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