Accessing Intersphinx inventories for Python packages using PyPI metadata to locate documentation sites.
igloosphinx
provides a command-line interface and library access to Intersphinx inventories, enabling users to easily find and retrieve documentation for Python packages. The tool works by:
- Performing a PyPI metadata lookup to identify the documentation site for a given package.
- Making educated guesses about the location of the
objects.inv
file. - Allowing users to review version changes and access relevant documentation seamlessly.
- PyPI Metadata Lookup: Automatically fetches the documentation URL from PyPI.
- Intersphinx Inventory Retrieval: Accesses and retrieves the
objects.inv
file for easy linking to documentation. - Version Change Review: Provides functionality to review changes between different versions of the documentation.
pip install igloosphinx[polars]
On older CPUs run:
pip install igloosphinx[polars-lts-cpu]
from igloosphinx import Inventory
# Create an Intersphinx instance for a specific package
intersphinx = Inventory(package_name="example-package")
# Fetch the documentation inventory
inventory = intersphinx.fetch_inventory()
# Review version changes
changes = intersphinx.review_version_changes()
- Issues & Discussions: Please open a GitHub issue for bugs, feature requests, or questions.
- Pull Requests: PRs are welcome! Add tests under
tests/
, update the docs, and ensure you runpytest
locally.
This project is licensed under the MIT License.