Skip to main content

Query metadatdata from sdists / bdists / installed packages.

Project description

pkginfo README

This package provides an API for querying the distutils metadata written in the PKG-INFO file inside a source distriubtion (an sdist) or a binary distribution (e.g., created by running bdist_egg). It can also query the EGG-INFO directory of an installed distribution, and the *.egg-info stored in a “development checkout” (e.g, created by running setup.py develop).

Please see the pkginfo docs for detailed documentation.

pkginfo Changelog

1.5.0.1 (2019-01-08)

  • Fix broken ‘sdist’. LP #1639585.

1.5.0 (2019-01-07)

  • Fix ‘console_scripts’ entry point syntax. LP #1810734.

  • Add support for JSON output from the CLI.

  • Add support for installed wheels. E.g., ‘dist-info/’ dirs.

  • Add support for Python 3.6 and 3.7.

  • Drop support for Python 3.3.

1.4.2 (2018-03-14)

  • Use relative imports in pkginfo modules. Supports vendoring of the package into setuptools.

  • Add support for Provides-Extra and Description-Content-Type fields. Per https://packaging.python.org/specifications/. See: PEP 566.

  • Remove support for old setuptools leaving PKG-INFO in the root of the project directory.

1.4.1 (2016-11-07)

  • Packaging only change (invalid sdist built for 1.4.0).

1.4.0 (2016-11-04)

  • Relicense under MIT license: the PSF license is not suitable for third-party libraries.

1.3.2 (2016-05-24)

  • Packaging-only change (automate fix for wheel built for 1.3.1).

1.3.1 (2016-05-24)

  • Packaging-only change (invalid wheel built for 1.3.0).

1.3.0 (2016-05-23)

  • Update homepage URL to point to Launchpad, rather than PyPI.

  • Add support for building wheels.

  • Add support for Python 3.5.

  • Drop support for Python 2.6 and 3.2.

1.2.1 (2014-01-02)

  • Add overlooked Trove classifier for Python 3.4.

1.2 (2014-01-02)

  • Add support for Python 3.4, PyPy3.

  • Add 100% coverage for pkginfo.commandline module.

1.2b1 (2013-12-05)

  • Add support for the “wheel” distribution format, along with minimal metadata 2.0 support (not including new PEP 426 JSON properties). Code (re-)borrowed from Donald Stuft’s twine package.

1.1 (2013-10-09)

  • Fix tests to pass with current PyPy releases.

1.1b1 (2013-05-05)

1.0 (2013-05-05)

  • No changes from 1.0b2.

1.0b2 (2012-12-28)

  • Suppress resource warning leaks reported against clients.

  • Fix ‘commandline’ module under Py3k.

1.0b1 (2012-12-28)

  • Add support for Python 3.2 and 3.3, including testing them under tox.

  • Add support for PyPy, including testing it under tox.

  • Test supported Python versions under tox.

  • Drop support for Python 2.5.

  • Add a setup.py dev alias: runs setup.py develop and installs testing extras (nose and coverage).

0.9.1 (2012-10-22)

  • Fix test failure under Python >= 2.7, which is enforcing ‘metadata_version == 1.1’ because we have classifiers.

0.9 (2012-04-25)

0.8 (2011-03-12)

0.7 (2010-11-04)

  • Preserve newlines in the description field. Thanks to Sridhar Ratnakumar for the patch.

  • 100% test coverage.

0.6 (2010-06-01)

  • Replace use of StringIO.StringIO with io.StringIO, where available (Python >= 2.6).

  • Replace use of rfc822 stdlib module with email.parser, when available (Python >= 2.5). Ensured that distributions “unfold” wrapped continuation lines, stripping any leading / trailing whitespace, no matter which module was used for parsing.

  • Remove bogus testing dependency on zope.testing.

  • Add tests that the “environment markers” spelled out in the approved PEP 345 are captured.

  • Add Project-URL for 1.2 PKG-INFO metdata (defined in the accepted version of PEP 345).

0.5 (2009-09-11)

  • Marked package as non-zip-safe.

  • Fix Trove metadata misspelling.

  • Restore compatibility with Python 2.4.

  • Note that the introspection of installed packages / modules works only in Python 2.6 or later.

  • Add Index class as an abstraction over a collection of distributions.

  • Add download_url_prefix argument to pkginfo script. If passed, the script will use the prefix to synthesize a download_url for distributions which do not supply that value directly.

0.4.1 (2009-05-07)

  • Fix bugs in handling of installed packages which lack __file__ or PKG-INFO.

0.4 (2009-05-07)

  • Extend the console script to allow output as CSV or INI. Also, added arguments to specify the metadata version and other parsing / output policies.

  • Add support for the different metadata versions specified in PEPs 241, 314, and 345. Distributions now parse and expose only the attributes corresponding to their metadata version, which defaults to the version parsed from the PKG-INFO file. The programmer can override that version when creating the distribution object.

0.3 (2009-05-07)

  • Add support for introspection of “development eggs” (checkouts with PKG-INFO, perhaps created via setup.py develop).

  • Add a console script, pkginfo, which takes one or more paths on the command line and writes out the associated information. Thanks to runeh for the patch!

  • Add get_metadata helper function, which dispatches a given path or module across the available distribution types, and returns a distribution object. Thanks to runeh for the patch!

  • Make distribution objects support iteration over the metadata fields. Thanks to runeh for the patch!

  • Make Distribution and subclasses new-style classes. Thanks to runeh for the patch!

0.2 (2009-04-14)

  • Add support for introspection of bdist_egg binary distributions.

0.1.1 (2009-04-10)

  • Fix packaging errors.

0.1 (2009-04-10)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkginfo-1.5.0.1.tar.gz (34.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkginfo-1.5.0.1-py2.py3-none-any.whl (25.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pkginfo-1.5.0.1.tar.gz.

File metadata

  • Download URL: pkginfo-1.5.0.1.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for pkginfo-1.5.0.1.tar.gz
Algorithm Hash digest
SHA256 7424f2c8511c186cd5424bbf31045b77435b37a8d604990b79d4e70d741148bb
MD5 dd6e07f0bc4481dac94d3559c11a8373
BLAKE2b-256 6c04fd6683d24581894be8b25bc8c68ac7a0a73bf0c4d74b888ac5fe9a28e77f

See more details on using hashes here.

File details

Details for the file pkginfo-1.5.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pkginfo-1.5.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for pkginfo-1.5.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a6d9e40ca61ad3ebd0b72fbadd4fba16e4c0e4df0428c041e01e06eb6ee71f32
MD5 444b49f793a00449751debe17875d70c
BLAKE2b-256 e6d5451b913307b478c49eb29084916639dc53a88489b993530fed0a66bab8b9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page