# datamonger.DataInfo

Datamonger for Python · 0.4.0

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

<a id="constructor"></a>

```python
DataInfo(
    dataset_id: str,
    source: str,
    name: str,
    version: str,
    registry_release: str,
    registry_index_sha256: str,
    title: str,
    description: str,
    modality: str,
    provenance: collections.abc.Mapping[str, typing.Any],
    license: collections.abc.Mapping[str, typing.Any],
    artifacts: tuple[collections.abc.Mapping[str, typing.Any], ...],
    representation: collections.abc.Mapping[str, typing.Any],
    expected_components: tuple[collections.abc.Mapping[str, typing.Any], ...],
    verification_records: tuple[collections.abc.Mapping[str, typing.Any], ...],
    related: tuple[collections.abc.Mapping[str, typing.Any], ...],
    tasks: tuple[collections.abc.Mapping[str, typing.Any], ...],
    citations: tuple[collections.abc.Mapping[str, typing.Any], ...] = ,
    citation_instructions: str | None = None,
    preprocessing: Mapping[str, Any] | None = None
)
```

Registry metadata for one resolved dataset version.

<a id="dataset_id"></a>

## `dataset_id`

```python
dataset_id: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Resolved dataset identifier in `source:name@version` form.

<a id="source"></a>

## `source`

```python
source: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Source namespace that identifies the dataset’s provider or collection.

<a id="name"></a>

## `name`

```python
name: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Dataset name within its source namespace, without a version suffix.

<a id="version"></a>

## `version`

```python
version: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Exact dataset version selected explicitly or through the registry default.

<a id="registry_release"></a>

## `registry_release`

```python
registry_release: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Immutable registry release containing this dataset record.

<a id="registry_index_sha256"></a>

## `registry_index_sha256`

```python
registry_index_sha256: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

SHA-256 of the selected registry index’s exact bytes.

<a id="title"></a>

## `title`

```python
title: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Human-readable dataset title supplied by the registry.

<a id="description"></a>

## `description`

```python
description: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry prose describing the dataset’s contents and purpose.

<a id="modality"></a>

## `modality`

```python
modality: str = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry category for the data, such as `"tabular"`.

<a id="provenance"></a>

## `provenance`

```python
provenance: collections.abc.Mapping[str, typing.Any] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry record of the dataset’s origin and upstream references.

<a id="license"></a>

## `license`

```python
license: collections.abc.Mapping[str, typing.Any] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry record of the dataset’s license and usage terms.

<a id="artifacts"></a>

## `artifacts`

```python
artifacts: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Artifact records describing retrieval URLs, byte sizes, digests, and formats.

<a id="representation"></a>

## `representation`

```python
representation: collections.abc.Mapping[str, typing.Any] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Decoder selection, options, artifact roles, and expected logical output.

<a id="expected_components"></a>

## `expected_components`

```python
expected_components: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Declared component names, logical types, and shapes used in verification.

<a id="verification_records"></a>

## `verification_records`

```python
verification_records: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Declared canonical-form versions and digests, without verifying decoded data.

<a id="related"></a>

## `related`

```python
related: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry links to related datasets, or an empty tuple when none are declared.

<a id="tasks"></a>

## `tasks`

```python
tasks: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Registry task descriptions, or an empty tuple when none are declared.

<a id="citations"></a>

## `citations`

```python
citations: tuple[collections.abc.Mapping[str, typing.Any], ...] = dataclasses.field(init=True, default=())
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

All curated references; an absent `recommended` flag means unknown.

<a id="citation_instructions"></a>

## `citation_instructions`

```python
citation_instructions: str | None = dataclasses.field(init=True, default=None)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Recorded upstream citation instructions, or `None` when unavailable.

<a id="preprocessing"></a>

## `preprocessing`

```python
preprocessing: Mapping[str, Any] | None = dataclasses.field(init=True, default=None)
```

[Source](<https://github.com/jolars/datamonger/blob/fbf4417f4d75b63acbb7eb39975add7aedbff2f6/packages/python/src/datamonger/_models.py>)

Upstream and Datamonger processing history, or `None` when unrecorded.
