API reference / Archive, sampling contract and types
tsdive.SingleFileStore
¶
SingleFileStore(path: Path)
Bases: TagStore
Read-only view over one explicit parquet file (no layout assumptions).
Methods:
| Name | Description |
|---|---|
archive_path |
The store's one file, whatever |
list_tags |
The identity the file's |
Attributes:
| Name | Type | Description |
|---|---|---|
path |
|
archive_path
¶
archive_path(identity: TagIdentity) -> Path
The store's one file, whatever identity names.
list_tags
¶
list_tags() -> list[TagIdentity]
The identity the file's tsdive.meta declares, as a one-item list.
Examples:
>>> import tsdive
>>> store = tsdive.SingleFileStore("data/demo/fic101_demo.parquet")
>>> [str(tag) for tag in store.list_tags()]
['demo:FIC101.PV']