intersphinx-registry 0.2405.27__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,50 @@
1
+ """
2
+ This package provides convenient utilities and data to write a sphinx config file.
3
+ """
4
+
5
+ from __future__ import annotations
6
+
7
+ from pathlib import Path
8
+ import json
9
+ from typing import Dict, Tuple, Set, Optional, cast
10
+
11
+ # See issue 4, we this the best format is Major.YYMM.day,
12
+ # in case of multiple releases a day we can borrow the next day's date.
13
+ __version__ = "0.2405.27"
14
+
15
+ registry_file = Path(__file__).parent / "registry.json"
16
+
17
+ def _get_all_mappings() -> Dict[str, Tuple[str, Optional[str]]]:
18
+ return cast(
19
+ Dict[str, Tuple[str, Optional[str]]],
20
+ {k: tuple(v) for (k, v) in json.loads(registry_file.read_bytes()).items()},
21
+ )
22
+
23
+
24
+ def get_intersphinx_mapping(
25
+ *, packages: Set[str] = set()
26
+ ) -> Dict[str, Tuple[str, Optional[str]]]:
27
+ """
28
+ Return values of intersphinx_mapping for sphinx configuration.
29
+
30
+ For convenience, the returned dictionary is a copy so should be ok to
31
+ mutate.
32
+
33
+ Parameters
34
+ ----------
35
+ packages: Set of Str
36
+ Libraries to include.
37
+
38
+ Sphinx will download and load all the `objects.inv` for listed
39
+ packages. Getting all mappings is discourage as it will download all
40
+ the `object.inv` which can be a non-negligible amount of data.
41
+
42
+ """
43
+ if len(packages) == 0:
44
+ raise ValueError('You must explicitly give a list of packages for which to download intersphinx inventories: get_intersphinx_mapping(packages=["IPython", "numpy",...]).')
45
+
46
+ mapping = _get_all_mappings()
47
+ missing = set(packages) - set(mapping)
48
+ if missing:
49
+ raise ValueError(f"Some libraries in 'packages' not found in registry: {repr(sorted(missing))}")
50
+ return {k: v for k, v in mapping.items() if k in packages}
File without changes
@@ -0,0 +1,167 @@
1
+ {
2
+ "pillow": ["https://pillow.readthedocs.io/en/stable/", null],
3
+ "pypug": ["https://packaging.python.org/en/latest/", null],
4
+ "anndata": ["https://anndata.readthedocs.io/en/stable/", null],
5
+ "asdf-astropy": ["https://asdf-astropy.readthedocs.io/en/latest/", null],
6
+ "astropy-dev": ["https://docs.astropy.org/en/latest/", null],
7
+ "asv": ["https://asv.readthedocs.io/en/stable/", null],
8
+ "asyncssh": ["https://asyncssh.readthedocs.io/en/latest/", null],
9
+ "attrs": ["https://www.attrs.org/en/stable/", null],
10
+ "bhub": ["https://binderhub.readthedocs.io/en/latest/", null],
11
+ "bokeh": ["https://docs.bokeh.org/en/latest/", null],
12
+ "boltons": ["https://boltons.readthedocs.io/en/latest/", null],
13
+ "bottle": ["https://bottlepy.org/docs/dev/", null],
14
+ "build": ["https://build.pypa.io/en/latest/", null],
15
+ "cartopy": ["https://scitools.org.uk/cartopy/docs/latest/", null],
16
+ "cffi": ["https://cffi.readthedocs.io/en/latest/", null],
17
+ "click": ["https://click.palletsprojects.com/", null],
18
+ "conda": ["https://conda.io/en/latest/", null],
19
+ "cycler": ["https://matplotlib.org/cycler/", null],
20
+ "cython": ["https://docs.cython.org/en/latest/", null],
21
+ "dask": ["https://docs.dask.org/en/latest/", null],
22
+ "dateutil": ["https://dateutil.readthedocs.io/en/latest/", null],
23
+ "devguide": ["https://devguide.python.org/", null],
24
+ "devpi": ["https://devpi.net/docs/devpi/devpi/latest/+doc/", null],
25
+ "dh-virtualenv": ["https://dh-virtualenv.readthedocs.io/en/latest/", null],
26
+ "dipy": ["https://docs.dipy.org/stable/", null],
27
+ "distlib": ["https://distlib.readthedocs.io/en/latest/", null],
28
+ "distributed": ["https://distributed.dask.org/en/stable/", null],
29
+ "django": [
30
+ "https://docs.djangoproject.com/en/2.2/",
31
+ "https://docs.djangoproject.com/en/2.2/_objects/"
32
+ ],
33
+ "dlpack": ["https://dmlc.github.io/dlpack/latest/", null],
34
+ "flax": ["https://flax.readthedocs.io/en/latest/", null],
35
+ "flexx": ["https://flexx.readthedocs.io/en/latest/", null],
36
+ "fsspec": ["https://filesystem-spec.readthedocs.io/en/latest/", null],
37
+ "geopandas": ["https://geopandas.org/en/stable/", null],
38
+ "hub": ["https://jupyterhub.readthedocs.io/en/latest/", null],
39
+ "imageio": ["https://imageio.readthedocs.io/en/stable/", null],
40
+ "importlib-resources": [
41
+ "https://importlib-resources.readthedocs.io/en/latest/",
42
+ null
43
+ ],
44
+ "ipykernel": ["https://ipykernel.readthedocs.io/en/latest/", null],
45
+ "ipyleaflet": ["https://ipyleaflet.readthedocs.io/en/latest/", null],
46
+ "ipyparallel": ["https://ipyparallel.readthedocs.io/en/latest/", null],
47
+ "ipython": ["https://ipython.readthedocs.io/en/latest/", null],
48
+ "ipywidgets": ["https://ipywidgets.readthedocs.io/en/latest/", null],
49
+ "jax": ["https://jax.readthedocs.io/en/latest/", null],
50
+ "jedi": ["https://jedi.readthedocs.io/en/latest/", null],
51
+ "jinja": ["http://jinja.pocoo.org/docs/", null],
52
+ "joblib": ["https://joblib.readthedocs.io/en/latest/", null],
53
+ "jupyter": ["https://docs.jupyter.org/en/latest/", null],
54
+ "jupyter-server": ["https://jupyter-server.readthedocs.io/en/stable/", null],
55
+ "jupyter_core": ["https://jupyter-core.readthedocs.io/en/stable/", null],
56
+ "jupyterbook": ["https://jupyterbook.org/en/stable/", null],
57
+ "jupyterclient": ["https://jupyter-client.readthedocs.io/en/latest/", null],
58
+ "jupytercore": ["https://jupyter-core.readthedocs.io/en/latest/", null],
59
+ "jupytext": ["https://jupytext.readthedocs.io/en/stable/", null],
60
+ "kwarray": ["https://kwarray.readthedocs.io/en/latest/", null],
61
+ "kwimage": ["https://kwimage.readthedocs.io/en/latest/", null],
62
+ "lab": ["https://jupyterlab.readthedocs.io/en/latest/", null],
63
+ "llvmlite": ["https://llvmlite.readthedocs.io/en/latest/", null],
64
+ "lxml": ["https://lxml.de/apidoc/", null],
65
+ "magicgui": ["https://pyapp-kit.github.io/magicgui/", null],
66
+ "markdown_it": ["https://markdown-it-py.readthedocs.io/en/latest/", null],
67
+ "matplotlib": ["https://matplotlib.org/stable/", null],
68
+ "meson-python": ["https://meson-python.readthedocs.io/en/stable/", null],
69
+ "mne": ["https://mne.tools/stable/", null],
70
+ "monkeytype": ["https://monkeytype.readthedocs.io/en/latest/", null],
71
+ "mpmath": ["https://mpmath.org/doc/current/", null],
72
+ "myst-nb": ["https://myst-nb.readthedocs.io/en/v0.12.3/", null],
73
+ "myst-parser": ["https://myst-parser.readthedocs.io/en/v0.15.1/", null],
74
+ "napari_plugin_engine": [
75
+ "https://napari-plugin-engine.readthedocs.io/en/latest/",
76
+ null
77
+ ],
78
+ "nbconvert": ["https://nbconvert.readthedocs.io/en/latest/", null],
79
+ "nbformat": ["https://nbformat.readthedocs.io/en/latest/", null],
80
+ "nbgitpuller": ["https://nbgitpuller.readthedocs.io/en/latest/", null],
81
+ "nbsphinx": ["https://nbsphinx.readthedocs.io/", null],
82
+ "ndsampler": ["https://ndsampler.readthedocs.io/en/latest/", null],
83
+ "neps": ["https://numpy.org/neps/", null],
84
+ "networkx": ["https://networkx.org/documentation/stable/", null],
85
+ "nibabel": ["https://nipy.org/nibabel/", null],
86
+ "nilearn": ["https://nilearn.github.io/stable/", null],
87
+ "notebook": ["https://jupyter-notebook.readthedocs.io/en/stable/", null],
88
+ "nox": ["https://nox.thea.codes/en/latest/", null],
89
+ "numba": ["https://numba.readthedocs.io/en/latest/", null],
90
+ "numpy": ["https://numpy.org/doc/stable/", null],
91
+ "numpy-tutorials": ["https://numpy.org/numpy-tutorials/", null],
92
+ "numpydoc": ["https://numpydoc.readthedocs.io/en/latest/", null],
93
+ "nx-guides": ["https://networkx.org/nx-guides/", null],
94
+ "openstack": ["https://docs.openstack.org/glance/latest/", null],
95
+ "pandas": ["https://pandas.pydata.org/docs/", null],
96
+ "pandas-gbq": ["https://pandas-gbq.readthedocs.io/en/latest/", null],
97
+ "parso": ["https://parso.readthedocs.io/en/latest/", null],
98
+ "patsy": ["https://patsy.readthedocs.io/en/latest/", null],
99
+ "pip": ["https://pip.pypa.io/en/latest/", null],
100
+ "pipenv": ["https://pipenv.pypa.io/en/latest/", null],
101
+ "piwheels": ["https://piwheels.readthedocs.io/en/latest/", null],
102
+ "pluggy": ["https://pluggy.readthedocs.io/en/stable/", null],
103
+ "poliastro": ["https://docs.poliastro.space/en/stable/", null],
104
+ "prompt_toolkit": [
105
+ "https://python-prompt-toolkit.readthedocs.io/en/stable/",
106
+ null
107
+ ],
108
+ "py": ["https://pylib.readthedocs.io/en/latest/", null],
109
+ "pyarrow": ["https://arrow.apache.org/docs/", null],
110
+ "pybind11": ["https://pybind11.readthedocs.io/en/stable/", null],
111
+ "pyerfa": ["https://pyerfa.readthedocs.io/en/stable/", null],
112
+ "pygraphviz": ["https://pygraphviz.github.io/documentation/stable/", null],
113
+ "pymde": ["https://pymde.org/", null],
114
+ "pymongo": ["https://pymongo.readthedocs.io/en/stable/", null],
115
+ "pynsist": ["https://pynsist.readthedocs.io/en/latest/", null],
116
+ "pypa": ["https://www.pypa.io/en/latest/", null],
117
+ "pypug": ["https://packaging.python.org/en/latest/", null],
118
+ "pypy": ["https://doc.pypy.org/en/latest/", null],
119
+ "pyqtgraph": ["https://pyqtgraph.readthedocs.io/en/latest/", null],
120
+ "pyro": ["https://docs.pyro.ai/en/stable/", null],
121
+ "pytest": ["https://pytest.org/en/stable/", null],
122
+ "python": ["https://docs.python.org/3/", null],
123
+ "python-guide": ["https://docs.python-guide.org/", null],
124
+ "pytorch_lightning": ["https://lightning.ai/docs/pytorch/stable/", null],
125
+ "pyvista": ["https://docs.pyvista.org/version/stable/", null],
126
+ "qiskit": ["https://docs.quantum.ibm.com/api/qiskit/", null],
127
+ "qtconsole": ["https://jupyter.org/qtconsole/dev/", null],
128
+ "readthedocs": ["https://docs.readthedocs.io/en/stable/", null],
129
+ "requests": ["https://docs.python-requests.org/en/latest/", null],
130
+ "rpy2": ["https://rpy2.github.io/doc/latest/html/", null],
131
+ "rst-to-myst": ["https://rst-to-myst.readthedocs.io/en/stable/", null],
132
+ "rtd": ["https://docs.readthedocs.io/en/stable/", null],
133
+ "rtd-dev": ["https://dev.readthedocs.io/en/latest/", null],
134
+ "scanpy": ["https://scanpy.readthedocs.io/en/stable/", null],
135
+ "scipy": ["https://docs.scipy.org/doc/scipy/", null],
136
+ "scipy-lecture-notes": ["https://scipy-lectures.org/", null],
137
+ "scriptconfig": ["https://scriptconfig.readthedocs.io/en/latest/", null],
138
+ "seaborn": ["https://seaborn.pydata.org/", null],
139
+ "server": ["https://jupyter-server.readthedocs.io/en/stable/", null],
140
+ "setuptools": ["https://setuptools.pypa.io/en/stable/", null],
141
+ "six": ["https://six.readthedocs.io/", null],
142
+ "skimage": ["https://scikit-image.org/docs/stable/", null],
143
+ "sklearn": ["https://scikit-learn.org/stable/", null],
144
+ "spack": ["https://spack.readthedocs.io/en/latest/", null],
145
+ "sparse": ["https://sparse.pydata.org/en/latest/", null],
146
+ "sphinx": ["https://www.sphinx-doc.org/en/master/", null],
147
+ "sphinx-gallery": ["https://sphinx-gallery.github.io/stable/", null],
148
+ "sphinx_automodapi": ["https://sphinx-automodapi.readthedocs.io/en/stable/", null],
149
+ "sqlalchemy": ["https://docs.sqlalchemy.org/en/latest/", null],
150
+ "statsmodels": ["https://www.statsmodels.org/stable/", null],
151
+ "sympy": ["https://docs.sympy.org/latest/", null],
152
+ "tljh": ["https://tljh.jupyter.org/en/latest/", null],
153
+ "torch": ["https://pytorch.org/docs/master/", null],
154
+ "tornado": ["https://www.tornadoweb.org/en/stable/", null],
155
+ "tox": ["https://tox.wiki/en/stable/", null],
156
+ "traitlets": ["https://traitlets.readthedocs.io/en/latest/", null],
157
+ "twine": ["https://twine.readthedocs.io/en/stable/", null],
158
+ "typing": ["https://typing.readthedocs.io/en/latest/", null],
159
+ "ubelt": ["https://ubelt.readthedocs.io/en/latest/", null],
160
+ "urwid": ["https://urwid.org/", null],
161
+ "virtualenv": ["https://virtualenv.pypa.io/en/stable/", null],
162
+ "writethedocs": ["https://www.writethedocs.org/", null],
163
+ "xarray": ["https://docs.xarray.dev/en/stable/", null],
164
+ "xdoctest": ["https://xdoctest.readthedocs.io/en/latest/", null],
165
+ "z2jh": ["https://z2jh.jupyter.org/en/latest/", null],
166
+ "zarr": ["https://zarr.readthedocs.io/en/latest/", null]
167
+ }
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Matthias Bussonnier
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.1
2
+ Name: intersphinx_registry
3
+ Version: 0.2405.27
4
+ Summary: This package provides convenient utilities and data to write a sphinx config file.
5
+ Author-email: Matthias Bussonnier <bussonniermatthias@gmail.com>
6
+ Description-Content-Type: text/markdown
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Requires-Dist: pytest>=7.0 ; extra == "tests"
9
+ Requires-Dist: pytest-xdist ; extra == "tests"
10
+ Requires-Dist: requests ; extra == "tests"
11
+ Project-URL: Home, https://github.com/Carreau/intersphinx_registry
12
+ Provides-Extra: tests
13
+
14
+ # Intersphinx Registry
15
+
16
+ A simple utility package that provide default inter sphinx mapping for a large chunk of the python ecosystem.
17
+
18
+ Usage in `conf.py`
19
+
20
+ ```python
21
+ from intersphinx_registry import get_intersphinx_mapping
22
+
23
+ # ...
24
+ intersphinx_mapping = get_intersphinx_mapping(
25
+ only={"ipython", "matplotlib", "pandas", "python"}
26
+ )
27
+ intersphinx_mapping.update({
28
+ 'overwrite': ('<url>', None),
29
+ 'my-package' : ('<url>', None),
30
+ })
31
+ ```
32
+
33
+
34
+ ## Why ?
35
+
36
+ Sometime packages docs move and it's hard to keep track of. We _try_ to keep the
37
+ registry up to date, so yo do not have to ask yourself questions and update your
38
+ intersphinx-mapping.
39
+
40
+ You also might not want to think about adding intersphinx mapping when you refer
41
+ to dependencies.
42
+
43
+ ## A package url is wrong !
44
+
45
+ Please send a PR updating only this package in the `registry.json`. We try to
46
+ link only to _stable_ package, not dev versions.
47
+
48
+ ## A package is missing !
49
+
50
+ We can't do all packages, but if you think a package is widely used and missing,
51
+ please send a PR.
52
+
@@ -0,0 +1,7 @@
1
+ intersphinx_registry/__init__.py,sha256=eAB_hqzhnyj06um4lBwGMDNsL-K935ehzwuz9j5qgeI,1705
2
+ intersphinx_registry/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ intersphinx_registry/registry.json,sha256=4sBhqiMSWXN65Zta-CK1TqFsEOHG3ylxQpZIMstEZbk,9785
4
+ intersphinx_registry-0.2405.27.dist-info/LICENSE,sha256=j98x_c52nvqkLlr-U8tUaubJG3IBCIFEInYE4L_Yqqo,1086
5
+ intersphinx_registry-0.2405.27.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
6
+ intersphinx_registry-0.2405.27.dist-info/METADATA,sha256=4iFBnKcB--j8tXF9h5sclfiH9DgemekI3i8yTKI9bpQ,1560
7
+ intersphinx_registry-0.2405.27.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: flit 3.9.0
3
+ Root-Is-Purelib: true
4
+ Tag: py2-none-any
5
+ Tag: py3-none-any