pyhs3.metadata.Metadata

class pyhs3.metadata.Metadata(**data)[source]

HS3 metadata containing version information and optional attribution.

Contains required HS3 version information along with optional details about packages used, authors, publications, and descriptions following the HS3 metadata specification.

Parameters:
  • hs3_version – Version of the HS3 specification used (required)

  • packages – List of software packages used (optional)

  • authors – List of authors or collaborations (optional)

  • publications – List of publication identifiers (optional)

  • description – Short description or abstract (optional)

  • data (Any)

Fields

Field

Type

Required

Default

authors

list[str] | None

No

None

description

str | None

No

None

hs3_version

str

Yes

packages

list[PackageInfo] | None

No

None

publications

list[str] | None

No

None

__init__(**data)

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Parameters:

data (Any)

Attributes

Metadata.hs3_version
Metadata.packages
Metadata.authors
Metadata.publications
Metadata.description