Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.1.4 instead.

aitana-storage

Store time series feature data as NetCDF or Zarr archives, organised in a directory hierarchy, and access them through a FastAPI service.

Installation

pip install aitana-storage

to_pytorch() requires PyTorch, which is an optional dependency:

pip install aitana-storage[pytorch]

Usage

Saving and querying features

Storage organises features in a directory tree (e.g. site/sensor/channel) and stores each feature as a NetCDF or Zarr archive on disk.

from datetime import datetime
from aitana.storage import Storage, generate_test_data

g = Storage('Whakaari', '/tmp', backend='zarr')
c = g.get_substore('WIZ', '00', 'HHZ')
c.save(generate_test_data(dim=1))

g.starttime = datetime(2012, 1, 1)
g.endtime = datetime(2012, 1, 2, 23, 59, 59)
rsam = c('rsam')  # -> xarray.DataArray indexed by datetime

PyTorch dataset

from torch.utils.data import DataLoader

dataset = g.to_pytorch(['rsam', 'dsar'])
dataloader = DataLoader(dataset, batch_size=32, shuffle=True)

FastAPI service

aitana.storage.api.TonikAPI exposes /feature, /inventory and /labels endpoints over HTTP.

tonik_api --rootdir /data --port 8003

Grafana annotations

Post labels stored alongside features as Grafana annotations, or retrieve existing annotations from the Grafana API.

grafana_annotations http://<user>:<pwd>@<grafana-host>:<port> --labels labels.json

License

See the repository root for license information.

Metadata

Release files for aitana-storage 0.1.2

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

Source distribution (sdist)

Source distribution for aitana-storage 0.1.2
File Size Uploaded Provenance Actions
aitana_storage-0.1.2.tar.gz 4.3 kB Without provenance Details for aitana_storage-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aitana-storage 0.1.2
File Interpreter ABI Platform Actions
aitana_storage-0.1.2-py3-none-any.whl Python 3 none any Details for aitana_storage-0.1.2-py3-none-any.whl

Total release size: 8.9 kB

Release files / aitana_storage-0.1.2.tar.gz

Download URL aitana_storage-0.1.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d00506b25c0c2871f6e86f20f78aeb81255682be331cd23d3a327d40cd685eae
BLAKE2b-256 checksum
How to use checksums
e91ba181e82dfdbb535cc373fec712559230a47b540290d268afd6fc3f8e31d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Release files / aitana_storage-0.1.2-py3-none-any.whl

Download URL aitana_storage-0.1.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1761a92c80d493d52a67b2abad303136d33005a32fe79b127b091f976c1c26f9
BLAKE2b-256 checksum
How to use checksums
d2c26644c5982f9ebe316ab22673703a52feebede25bec02dacac196082472ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.12

Security for aitana-storage 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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