dist-meta
Parse and create Python distribution metadata.
What it is and what it does
dist-meta is a library for reading and writing Python distribution metadata—the standardized information stored in dist-info directories that describes a package's dependencies, version, entry points, and other installation details. It abstracts the parsing of metadata files (METADATA, WHEEL, entry_points.txt, and related formats) into a programmatic interface, making it easier to inspect or construct package metadata without manually parsing text files.
The package is aimed at developers building packaging tools, build systems, or utilities that need to inspect or manipulate Python package metadata. It depends on domdf-python-tools, handy-archives, and packaging, and supports Python 3.6 through 3.12 on CPython and PyPy. The codebase is actively maintained and carries type hints.
Use it for:
- Inspect metadata of installed packages programmatically in a build or deployment tool
- Generate or validate dist-info metadata when creating custom Python packages
- Extract dependency information from wheel or installed package metadata
- Automate metadata-driven workflows in package management or CI/CD systems
- Parse and transform metadata across different Python package formats
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Parse and create Python distribution metadata from dist-info directories and related sources, handling package metadata standards for PyPI and distribution workflows.
Yes, if you need to read or write Python distribution metadata programmatically. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is a specialized tool—install it only if your workflow involves inspecting or constructing package metadata; it is not a general-purpose utility.
Install
dist-meta on PyPI
pip
pip install dist-metauv
uv add dist-metapoetry
poetry add dist-metaInstalling dist-meta
Before you install
Low friction install with three stable runtime dependencies (domdf-python-tools, handy-archives, packaging). Active maintenance with a commit as recent as 2026-07-08, though the last release was 548 days ago.
License in practice
MIT license permits commercial and private use, modification, and redistribution with minimal restrictions—only requiring preservation of copyright and license notices.
Quickstart
$ python -m pip install dist-meta
import dist_meta
# Parse metadata from a dist-info directory or package
Verify before relying
- Specific API surface and whether it covers all standard metadata fields (METADATA, WHEEL, entry_points.txt, etc.)
- Whether the package handles edge cases in non-standard or legacy metadata formats
- Performance characteristics when parsing large or complex metadata structures
Package facts
| License | Copyright (c) 2021 Dominic Davis-Foster Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in… (full text in the JSON record) (permissive) |
| Python support | supports the current Python release (>=3.6.1) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — domdf-python-tools, handy-archives, packaging |
| Maintenance | actively maintained — 548 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 811,020/month — #5,004 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: dist_meta-0.9.0-py3-none-any.whl
Keywords: dist-info, metadata, packaging, pypi
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
pypi-jsonA client library for querying PyPI's JSON API…
permissive · top 15,000 on PyPI
pyproject-parserParses and extracts metadata from…
permissive · top 15,000 on PyPI
shippinglabelProvides utilities for reading and working with…
permissive · top 5,000 on PyPI
wheywhey is a PEP 517 build backend that creates…
permissive · top 15,000 on PyPI
appdirs-stubsProvides type stubs for the appdirs package,…
permissive · top 15,000 on PyPI
pkginfo2pkginfo2 reads and parses package metadata from…
permissive · top 15,000 on PyPI
pkginfoExtracts and queries package metadata from…
permissive · top 1,000 on PyPI
pyproject-metadataValidates and transforms pyproject.toml…
permissive · top 5,000 on PyPI
pkg-aboutRetrieves Python package metadata at runtime in…
permissive · top 15,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI