Package metadata is standardized and structured data that is often reused across projects, (such as in setup.py and --help output). <pkg_resources.EggInfoDistribution> supports retrieving this information via get_metadata(), but returns only a text blob. This has lead to projects re-implementing parsing logic in their codebases (i.e. mozilla/gecko-dev/.../utils.py#L20). Package data should instead be exposed as a dictionary or first-class object.
Package metadata is standardized and structured data that is often reused across projects, (such as in
setup.py
and--help
output).<pkg_resources.EggInfoDistribution>
supports retrieving this information viaget_metadata()
, but returns only a text blob. This has lead to projects re-implementing parsing logic in their codebases (i.e. mozilla/gecko-dev/.../utils.py#L20). Package data should instead be exposed as a dictionary or first-class object.