pkg_about documentation

pkg_about

Unified access to Python package metadata at runtime.

Overview

Provides a unified way to retrieve Python package metadata at runtime, regardless of the build backend or project structure.

about(package: str) - retrieves metadata for the given package
about() - retrieves metadata for the current package
about_from_setup() - retrieves metadata from pyproject.toml and/or setup.cfg

PyPI record.

Documentation.

Usage

>>> import pkg_about
>>> pkg_about.about("pip")
>>> __uri__ == "https://pip.pypa.io/"
True

Installation

Prerequisites:

To install run:

python -m pip install --upgrade pkg_about

Development

Prerequisites:

  • Development is strictly based on nox. To install it run:

    python -m pip install --upgrade nox
    

Visit Development page.

Installation from sources:

clone the sources:

and run:

python -m pip install ./pkg_about

or on development mode:

python -m pip install --editable ./pkg_about

License

Copyright (c) 2020-2026 Adam Karpierz
Licensed under the zlib/libpng License
Please refer to the accompanying LICENSE file.

Authors

Sponsoring

If you would like to sponsor the development of this project, your contribution is greatly appreciated.
As I am now retired, any support helps me dedicate more time to maintaining and improving this work.

Donate

Contents

Indices and tables