datacontract-specification
The Pydantic Model of the Data Contract Specification
Decision gist · record as of 2026-08-14
Yes, if you need programmatic access to Data Contract Specification files in Python. The low install friction, permissive license, and small dependency footprint make it a reasonable choice. However, the aging maintenance status (323 days since last release) suggests checking whether the package is still actively developed before adopting it for critical workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Low install friction with only two runtime dependencies (pydantic and pyyaml).
- Maintenance status is aging—last release was 323 days ago—but the repository remains active with a recent commit on 2025-09-25.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) allows commercial and private use with minimal restrictions, making it suitable for most projects.
last release 2025-09-25 (323 days) · last repo commit 2025-09-25 · 3 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,305,007 downloads/mo, #4,081 on PyPI
Alternatives
Verify before relying
pip install datacontract-specification
from datacontract_specification.model import DataContractSpecification
data_contract = DataContractSpecification.from_file('path/to/your/data_contract.yaml')
print(data_contract.to_yaml())- Whether the package is actively maintained beyond the most recent commit or if 323 days since release indicates stalled development.
- Whether version 1.2.3 fully supports all features of Data Contract Specification 1.2.0 or if there are known limitations.
What it is and what it does
This package provides a Pydantic-based Python model for the Data Contract Specification, allowing you to load and serialize data contract YAML files programmatically. It was extracted from the Data Contract CLI as a standalone library and mirrors the major and minor version numbers of the specification it supports (1.2.x for spec 1.2.0). The package requires Python 3.10 or later and depends only on pydantic and pyyaml.
You use it to parse existing data contract YAML files into Python objects via from_file() or from_string(), inspect and manipulate the contract structure, and serialize it back to YAML. It's designed as a low-level serialization layer rather than a full data governance platform.
Use it for
- Parse and validate data contract YAML files in Python applications that need to read contract metadata.
- Generate or modify data contract definitions programmatically before writing them back to YAML.
- Integrate data contract specifications into data pipeline orchestration or metadata management tools.
- Build tooling that needs to inspect contract structure without external CLI calls.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need programmatic access to Data Contract Specification files in Python.
The low install friction, permissive license, and small dependency footprint make it a reasonable choice. However, the aging maintenance status (323 days since last release) suggests checking whether the package is still actively developed before adopting it for critical workflows.
Install
datacontract-specification on PyPI
Before you install
Low install friction with only two runtime dependencies (pydantic and pyyaml). Maintenance status is aging—last release was 323 days ago—but the repository remains active with a recent commit on 2025-09-25.
Requires Python 3.10 or later.
License in practice
MIT license (permissive) allows commercial and private use with minimal restrictions, making it suitable for most projects.
Quickstart
pip install datacontract-specification
from datacontract_specification.model import DataContractSpecification
data_contract = DataContractSpecification.from_file('path/to/your/data_contract.yaml')
print(data_contract.to_yaml())
Verify before relying
- Whether the package is actively maintained beyond the most recent commit or if 323 days since release indicates stalled development.
- Whether version 1.2.3 fully supports all features of Data Contract Specification 1.2.0 or if there are known limitations.
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespydanticpyyaml |
| Maintenance | Aging 323 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,305,007 / month, #4,081 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: datacontract_specification-1.2.3-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “data contract yaml parser”
- datacontract-specificationReads and writes YAML files conforming to the Data Contract…
- open-data-contract-standardReads and writes YAML files conforming to the Open Data Contract…
- datacontract-cliA CLI tool for defining, validating, and testing data contracts using…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also datacontract-cli · open-data-contract-standard · pydantic_yaml · prime-pydantic-config · agent-framework-declarative · openccu-loom-types · openapi-schema-pydantic · dydantic · pydbml · pydantic-ai