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)
)
series_id = store.add_time_series(
owner_id=42, owner_type="Generator",
owner_category=OwnerCategory.Component,
time_series=ts, # name comes from ts
features={"model_year": 2030}, units="MW",
)
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. - Six time-series types —
SingleTimeSeriesandNonSequentialTimeSeriesread+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.
License
BSD-3-Clause. See LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file infrastore-0.11.0-cp311-abi3-win_amd64.whl.
File metadata
- Download URL: infrastore-0.11.0-cp311-abi3-win_amd64.whl
- Upload date:
- Size: 5.7 MB
- Tags: CPython 3.11+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c902560d1f546b89db1570543af8493a7c3a4f567034a60da9a067cfba2542a
|
|
| MD5 |
edc52bddd5f1790289be8b0794514e63
|
|
| BLAKE2b-256 |
dca57049807a6986a59eeaa766acf1515a58f37dcadfcc9f2cec76455c1796e9
|
Provenance
The following attestation bundles were made for infrastore-0.11.0-cp311-abi3-win_amd64.whl:
Publisher:
python-wheels.yml on NatLabRockies/infrastore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infrastore-0.11.0-cp311-abi3-win_amd64.whl -
Subject digest:
1c902560d1f546b89db1570543af8493a7c3a4f567034a60da9a067cfba2542a - Sigstore transparency entry: 2664635871
- Sigstore integration time:
-
Permalink:
NatLabRockies/infrastore@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Branch / Tag:
refs/tags/v0.11.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-wheels.yml@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file infrastore-0.11.0-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: infrastore-0.11.0-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 4.4 MB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26cb445f9ccc98f2ddb14d70057a0cd186f06b235b39839f0b02cf5d63fa1bc4
|
|
| MD5 |
a61dfc2fff8a1c5ae84ce4f1868a7cd3
|
|
| BLAKE2b-256 |
147f27c875309d063f3ec3234ce9e50480b243fc7e64629ba273965a487f7ee8
|
Provenance
The following attestation bundles were made for infrastore-0.11.0-cp311-abi3-manylinux_2_28_x86_64.whl:
Publisher:
python-wheels.yml on NatLabRockies/infrastore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infrastore-0.11.0-cp311-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
26cb445f9ccc98f2ddb14d70057a0cd186f06b235b39839f0b02cf5d63fa1bc4 - Sigstore transparency entry: 2664635953
- Sigstore integration time:
-
Permalink:
NatLabRockies/infrastore@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Branch / Tag:
refs/tags/v0.11.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-wheels.yml@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Trigger Event:
push
-
Statement type:
File details
Details for the file infrastore-0.11.0-cp311-abi3-macosx_14_0_arm64.whl.
File metadata
- Download URL: infrastore-0.11.0-cp311-abi3-macosx_14_0_arm64.whl
- Upload date:
- Size: 3.5 MB
- Tags: CPython 3.11+, macOS 14.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a20d3f28eadf18a34f88070d3d38063014d162f75ec76b3ca0257eaf1409c2e
|
|
| MD5 |
98b3ea4b2d9313b51b67f9267eebeee6
|
|
| BLAKE2b-256 |
1e541f315592a32443f7a442074d43d679b0e5021c64d1e9d72ebe8a3eadbdf3
|
Provenance
The following attestation bundles were made for infrastore-0.11.0-cp311-abi3-macosx_14_0_arm64.whl:
Publisher:
python-wheels.yml on NatLabRockies/infrastore
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
infrastore-0.11.0-cp311-abi3-macosx_14_0_arm64.whl -
Subject digest:
9a20d3f28eadf18a34f88070d3d38063014d162f75ec76b3ca0257eaf1409c2e - Sigstore transparency entry: 2664635830
- Sigstore integration time:
-
Permalink:
NatLabRockies/infrastore@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Branch / Tag:
refs/tags/v0.11.0 - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-wheels.yml@b61cd397271c7e1c1b6a843ad517cf43c4a3c3f5 -
Trigger Event:
push
-
Statement type: