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
Usage¶
>>> import pkg_about
>>> pkg_about.about("pip")
>>> __uri__ == "https://pip.pypa.io/"
True
Installation¶
Prerequisites:
Python 3.10 or higher
pip
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:
git clone https://github.com/karpierz/pkg_about pkg_about
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 KarpierzLicensed under the zlib/libpng LicensePlease refer to the accompanying LICENSE file.
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.