vtk-xref is a Sphinx extension for linking directly to VTK’s documentation using the :vtk: reference role.
Installation
Add vtk-xref as a project dependency or install it with:
pip install vtk-xrefAdd vtk_xref as an extension in your conf.py file used by Sphinx:
extensions = [
...,
'vtk_xref',
]
Usage
Add links to VTK class documentation with the :vtk: role. For example, write :vtk:`vtkImageData` in docstrings to link directly to the vtkImageData documentation. This will render as vtkImageData.
Link directly to class members such as methods or enums. For example, write :vtk:`vtkImageData.GetSpacing` to link directly to the GetSpacing method. This will render as vtkImageData.GetSpacing.
Use ~ to shorten the title for the link and only show the class member after the period. For example, :vtk:`~vtkImageData.GetSpacing` will render as GetSpacing.
Provide a custom title for the reference. For example, :vtk:`Get Image Spacing <vtkImageData.GetSpacing>` will render as Get Image Spacing
Notes
The URLs linking to the VTK documentation are checked to ensure they are valid references. A warning is emitted if the reference is invalid, but the role will still try to point to a valid URL where possible. It is recommended to set nitpicky=True in conf.py when using this extension to ensure all links are valid and correct.
The role does not currently support linking to nested members. For example, linking to an enum member with :vtk:`vtkCommand.EventIds` works, but linking to a specific enum value with :vtk:`vtkCommand.EventIds.PickEvent` does not.
Metadata
Release files for vtk-xref 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vtk_xref-0.1.2.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vtk_xref-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.9 kB
Release files / vtk_xref-0.1.2.tar.gz
| Download URL | vtk_xref-0.1.2.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
504b7079feb1a26248a089919e9d219fa1e6c867f93656cb3761e663f95b1872
|
|
BLAKE2b-256 checksum How to use checksums |
fe68f17312538beb3e7cf0c8b3528f26a53104b408e11a29d0cfe1c191ab1b7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.
Transparency logRelease files / vtk_xref-0.1.2-py3-none-any.whl
| Download URL | vtk_xref-0.1.2-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d6de530fa85276e00b3b6efa1f4e45ea3360a5e18e3524b6323fd3adcf903358
|
|
BLAKE2b-256 checksum How to use checksums |
7e22d294f6f0992c41385fe4f79392158b63ac3d86c1874a823fed8e878a267f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 24, 2026.
Transparency log