sphinx-runpython: run python code in sphinx
sphinx-runpython implements sphinx extensions including one to execute code and add the output to the documentation. The library is released on pypi/sphinx-runpython and its documentation is published at sphinx-runpython.
epkg
It implements a list of recurring urls in documentation.
conf.py
epkg_dictionary = {'title': 'url' }
rst
:epkg:`title` -> `title <url>`_
runpython
Executes code in the documentation and adds it to documentation.
.. runpython::
:showcode:
print("python code")
<<<
print("python code")
>>>
python code
List of directives
Metadata
Release files for sphinx-runpython 0.4.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_runpython-0.4.4-py3-none-any.whl | Python 3 | none | any | Details for sphinx_runpython-0.4.4-py3-none-any.whl |
Release files / sphinx_runpython-0.4.4-py3-none-any.whl
| Download URL | sphinx_runpython-0.4.4-py3-none-any.whl |
|---|---|
| Size | 91.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
055583dd35eb7e154305a0e83b454c5d9bca04d852bf87111a8578eda3701058
|
|
BLAKE2b-256 checksum How to use checksums |
c535c4aa89a20a72f086aa290d48fd723432a27c24aedcb1e978385923e56ff9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for sphinx-runpython 0.4.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.