Skip to main content

Accessing Intersphinx inventories for Python packages using PyPI metadata to locate documentation sites

Project description

igloosphinx

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.

Features

  • 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.

Installation

pip install igloosphinx[polars]

On older CPUs run:

pip install igloosphinx[polars-lts-cpu]

NOTE Temporarily requires dev-branch Sphinx, either use

pip install git+https://github.com/sphinx-doc/sphinx.git

or

uv add git+https://github.com/sphinx-doc/sphinx.git

Usage

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()

Contributing

  1. Issues & Discussions: Please open a GitHub issue for bugs, feature requests, or questions.
  2. Pull Requests: PRs are welcome! Add tests under tests/, update the docs, and ensure you run pytest locally.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

igloosphinx-0.1.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

igloosphinx-0.1.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file igloosphinx-0.1.1.tar.gz.

File metadata

  • Download URL: igloosphinx-0.1.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.12.8 Linux/6.8.0-51-generic

File hashes

Hashes for igloosphinx-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a9b05a022053474676740ad0c4351378fec40df6cc362a270580528e26e1108
MD5 79230bb290aa70e1d845edbf5abd90ef
BLAKE2b-256 ec99eed198e0b680a7c56292c7cf531d4c6ac3f8b7cd7cbdd3aec9c720c06abf

See more details on using hashes here.

File details

Details for the file igloosphinx-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: igloosphinx-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.12.8 Linux/6.8.0-51-generic

File hashes

Hashes for igloosphinx-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec37854d2ff88231bc5baabb4e078377ae0f905d36eaedbe4bd32430db42ecd8
MD5 9aea6e73abef159fbf6aa8b8b0bca0e1
BLAKE2b-256 8223be4267e495efc123fa12f9eb54ba38b04275dd451ba68020cc6c9c436f3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page