pkg-about library

2.3.0 · active · verified Fri Apr 17

pkg-about provides unified access to Python package metadata at runtime. It's designed to fetch information like version, summary, author, and license for installed packages, abstracting away differences between `pkg_resources` and `importlib.metadata`. The current version is 2.3.0, and it generally follows a release cadence driven by new features or bug fixes, typically every few months.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to fetch metadata for an installed package using `get_about`. It retrieves information like name, version, summary, author, and license for the 'pkg-about' library itself.

from pkg_about import get_about

# Get metadata for pkg-about itself
about_pkg = get_about('pkg-about')

print(f"Package Name: {about_pkg.name}")
print(f"Version: {about_pkg.version}")
print(f"Summary: {about_pkg.summary}")
print(f"Author: {about_pkg.author}")
print(f"License: {about_pkg.license}")

view raw JSON →