Manifest
timenet.manifest ¶source
The dataset manifest: a frozen :class:Manifest and its JSON codec.
Manifest
dataclass
¶source
The single source of truth a consumer reads to interpret a dataset version.
Raises:
| Type | Description |
|---|---|
InvalidManifestError
|
If |
checksums
class-attribute
instance-attribute
¶source
Per-file checksums keyed by relative path, each sha256: prefixed.
counts
class-attribute
instance-attribute
¶source
counts: ManifestCounts = field(
default_factory=ManifestCounts
)
Row and entity counts recorded for quick inspection.
dataset_id
instance-attribute
¶source
dataset_id: str
Denormalized copy of metadata.dataset_id, readable without parsing metadata.
derived_from
class-attribute
instance-attribute
¶source
Copy-on-write lineage (base version + operation), or None for a freshly built version.
files
instance-attribute
¶source
files: ManifestFiles
Relative paths to every data artifact, grouped by kind.
id_encoding
class-attribute
instance-attribute
¶source
Logical id -> "uuid16" for ids stored as binary(16); absent entries are strings.
metadata
instance-attribute
¶source
metadata: DatasetMetadata
Descriptive identity of the dataset (name, version, license, domains, tags).
schema
class-attribute
instance-attribute
¶source
schema: DatasetSchema = field(default_factory=DatasetSchema)
Structural schema: time-series specs, data sources, annotations, and tasks.
timef_format_version
class-attribute
instance-attribute
¶source
timef_format_version: int = 1
TimeF manifest format version; must be in SUPPORTED_FORMAT_VERSIONS.
from_dict
classmethod
¶source
Parse a manifest dict, tolerating missing optional blocks.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict[str, Any]
|
The manifest dict (e.g. from |
required |
Returns:
| Type | Description |
|---|---|
Manifest
|
The parsed :class: |
Raises:
| Type | Description |
|---|---|
InvalidManifestError
|
If a required key is missing or a block is malformed. |
from_json
classmethod
¶source
Parse a manifest from a JSON string.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The JSON text. |
required |
Returns:
| Type | Description |
|---|---|
Manifest
|
The parsed :class: |
Raises:
| Type | Description |
|---|---|
InvalidManifestError
|
If the text is not valid JSON or a block is malformed. |
ManifestCounts
dataclass
¶source
Row/entity counts recorded in the manifest for quick inspection without opening the parquet.
annotations
class-attribute
instance-attribute
¶source
annotations: int = 0
Number of unique annotation ids across all samples.
samples
class-attribute
instance-attribute
¶source
samples: int = 0
Total number of samples in the dataset.
time_series_chunks
class-attribute
instance-attribute
¶source
time_series_chunks: int = 0
Number of time series chunk placements written to parquet.
ManifestFiles
dataclass
¶source
Relative paths to every artifact of a dataset version. Readers use this list, not a glob.
Every artifact is a list of parts, so any of them can shard later without a manifest-format change.
Today the writer emits a single part for samples / annotations / time_series_index;
tasks and time_series already carry several.
tasks
class-attribute
instance-attribute
¶source
Relative path parts of the task tables, one per task type.
time_series
class-attribute
instance-attribute
¶source
Relative path parts (shards) of the time series data.