Skip to main content

Intersphinx Registry

A simple utility package that provides a default intersphinx mapping for a large chunk of the Python ecosystem.

Installation

# Core package only (for use in conf.py/Sphinx projects)
pip install intersphinx_registry

# With a command-line interface
pip install intersphinx_registry[cli]
# or
uv tool install intersphinx_registry[cli]
# or
pipx install intersphinx_registry[cli]

You can also use it without installation:

uvx intersphinx-registry[cli] lookup numpy,scipy array

Usage in conf.py

from intersphinx_registry import get_intersphinx_mapping

# ...
intersphinx_mapping = get_intersphinx_mapping(
    packages={"ipython", "matplotlib", "pandas", "python"}
)
intersphinx_mapping.update({
    'overwrite': ('<url>', None),
    'my-package': ('<url>', None),
})

Command-line interface

The package provides a command-line interface for looking up intersphinx targets.

[!NOTE] The CLI requires installing the [cli] extra: pip install intersphinx_registry[cli]

$ intersphinx-registry --version
# or
$ intersphinx-registry -v

quick lookup

You can use the lookup command to search for intersphinx targets and webpages across various packages.

Call without arguments to get help:

$ intersphinx-registry lookup

Basic usage:

$ intersphinx-registry lookup <package>[,package] [search_term]

Examples:

$ intersphinx-registry lookup numpy,scipy array
$ intersphinx-registry lookup ipython formatters.html

You can search multiple packages at once:

$ intersphinx-registry lookup numpy,scipy Universal
std:label ufuncs                             NumPy 2.1    'Universal functions (ufunc)'                         https://numpy.org/doc/stable/reference/ufuncs.html#ufuncs
std:label ufuncs-basics                      NumPy 2.1    'Universal functions (ufunc) basics'                  https://numpy.org/doc/stable/user/basics.ufuncs.html#ufuncs-basics
std:label ufuncs-internals                   NumPy 2.1    'Universal functions'                                 https://numpy.org/doc/stable/dev/internals.code-explanations.html#ufuncs-internals
std:doc   reference/ufuncs                   NumPy 2.1    'Universal functions (ufunc)'                         https://numpy.org/doc/stable/reference/ufuncs.html
std:doc   user/basics.ufuncs                 NumPy 2.1    'Universal functions (ufunc) basics'                  https://numpy.org/doc/stable/user/basics.ufuncs.html
std:label non-uniform-random-number-sampling SciPy 1.14.1 'Universal Non-Uniform Random Number Sampling in SciPy' https://docs.scipy.org/doc/scipy/tutorial/stats/sampling.html#non-uniform-random-number-sampling
std:doc   tutorial/stats/sampling            SciPy 1.14.1 'Universal Non-Uniform Random Number Sampling in SciPy' https://docs.scipy.org/doc/scipy/tutorial/stats/sampling.html

[!WARNING] There is no cache; the lookup command downloads the inventory of each mentioned package every time.

You can also use the lookup functionality via the module interface:

$ python -m intersphinx_registry.lookup <package>[,package] [search_term]

reverse-lookup

Find which package a documentation URL belongs to and get its Sphinx reference.

$ intersphinx-registry reverse-lookup <url> [url...]

Examples:

$ intersphinx-registry reverse-lookup https://numpy.org/doc/stable/reference/arrays.html
$ intersphinx-registry reverse-lookup https://docs.python.org/3/ https://numpy.org/doc/stable/

This is useful when you have a link to documentation and want to know the corresponding Sphinx reference (:domain:package:target) that you can use in your own documentation with intersphinx.

rev-search

Scan .rst files in a directory for hardcoded URLs and suggest replacements with Sphinx references.

$ intersphinx-registry rev-search <directory-or-file>

Examples:

$ intersphinx-registry rev-search docs/
$ intersphinx-registry rev-search docs/index.rst

This command helps you convert hardcoded URLs in your reStructuredText documentation into proper intersphinx references. It scans your documentation files, finds URLs that match known packages in the registry, and shows you a diff-style output of the suggested changes.

Why ?

Sometimes, packages docs move and it's hard to keep track of them. We try to keep the registry up to date, so you do not have to ask yourself questions and update your intersphinx-mapping.

You also might not want to think about adding intersphinx mapping when you refer to dependencies.

A package url is wrong !

Please send a PR updating only this package in the registry.json. We try to link only to stable package, not dev versions.

A package is missing !

We can't do all packages, but if you think a package is widely used and missing, please send a PR.

Download files

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

Source Distribution

intersphinx_registry-0.2608.26.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

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

intersphinx_registry-0.2608.26-py2.py3-none-any.whl (22.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file intersphinx_registry-0.2608.26.tar.gz.

File metadata

  • Download URL: intersphinx_registry-0.2608.26.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for intersphinx_registry-0.2608.26.tar.gz
Algorithm Hash digest
SHA256 3d88d7de6e48c73a123470a69acb3350ac97e7471bdcbc0e69916120292e295c
MD5 28a26e7bcc5838323e13b969ad0ec662
BLAKE2b-256 f7943656e4cfba86ebd5b2c955d37e1bef5a606eac0d502a0280e215ebe7168e

See more details on using hashes here.

Provenance

The following attestation bundles were made for intersphinx_registry-0.2608.26.tar.gz:

Publisher: publish.yml on Quansight-Labs/intersphinx_registry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file intersphinx_registry-0.2608.26-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for intersphinx_registry-0.2608.26-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b659dc971f0f93fbdf75b65857dc8b3f040df6cf1dda6a23ef69b03e6a4f19d3
MD5 4814d4f4ad7d4c9d10c41eea47ea4477
BLAKE2b-256 f6ba047d3ae546445a8b7711ab2341945a5b30c9a05f9df17985d1b6f0f223bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for intersphinx_registry-0.2608.26-py2.py3-none-any.whl:

Publisher: publish.yml on Quansight-Labs/intersphinx_registry

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2609.5

2 files

This release

0.2608.26 This release

2 files

0.2606.25

2 files

0.2606.8

2 files

0.2605.28

2 files

0.2605.27

2 files

0.2603.16

2 files

0.2602.2

2 files

0.2601.5

2 files

0.2511.25

2 files

0.2511.7

2 files

0.2510.17

2 files

0.2510.9

2 files

0.2510.5

2 files

0.2501.23

2 files

0.2412.7

2 files

0.2411.25

2 files

0.2411.17

2 files

0.2411.13

2 files

0.2411.12

2 files

0.2410.14

2 files

0.2410.4

2 files

0.2410.1

2 files

0.2408.13

2 files

0.2406.4

2 files

0.2405.29

2 files

0.2405.27

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page