Registry / serialization / pkg-about

pkg-about

JSON →
library2.4.3pypypi✓ verified 83d ago

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.

pip install pkg-about
INSTALL
IMPORT
SIG · PKG-ABOUT
P
pkg-about
serializationpythonv2.4.3
Install
2.1s avg
Import
Disk
18MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 19.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 2.1s · import 0.000s · 20MB
18MB installed
● package 18MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

about
from pkg_about import about
from pkg_about import get_about
about_from_setup
from pkg_about import about_from_setup

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}")
Debug
Known issues
breakingMajor refactor in version 2.0.0 changed the primary entry point for accessing package metadata. Direct instantiation or attribute access patterns from v1.x.x versions are no longer valid.
fix
Migrate to using `pkg_about.get_about()` which returns an `About` object. Access attributes directly on the returned object (e.g., `about.version`).
affects: >=2.0.0
gotchaThe library explicitly requires Python >=3.10.0 and <4.0.0. Attempting to use it on older Python versions (e.g., 3.9 or earlier) will result in installation failure or runtime errors.
fix
Ensure your environment uses Python 3.10, 3.11, or 3.12. Upgrade your Python interpreter if necessary.
affects: All versions
gotchaAttempts to retrieve metadata for a non-existent or misspelled package name will raise a `PackageNotFoundError`. This can happen even if the package is installed but has a different internal name than assumed.
fix
Verify the exact spelling of the package as it appears in `pip list` or `site-packages`. Wrap calls to `get_about()` in a `try...except pkg_about.exceptions.PackageNotFoundError` block for robust applications.
affects: All versions
Upgrade
Version history
2.4.3latest on PyPI · released Jun 1, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
pkg-about — pip install pkg-about · libregistry