sphinx-autorun 2.0.0
pip install sphinx-autorun
Released:
Sphinx extension autorun
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-2-Clause)
- Author: Hugo Osvaldo Barrera
- Requires: Python >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
sphinx-autorun is an extension for Sphinx that can execute the code from a runblock directive and attach the output of the execution to the document.
For example:
.. runblock:: pycon >>> for i in range(5): ... print i
Produces:
>>> for i in range(5): ... print i 1 2 3 4 5
Another example:
.. runblock:: console $ date
Produces:
$ date Thu 4 Mar 2010 22:56:49 EST
Currently autorun supports pycon and console languages. It’s also possible to configure autorun (from conf.py) to run other languages.
Installation
Installing via pip (recommended):
$ pip install sphinx-autorun
Install from source:
$ git clone https://github.com/WhyNotHugo/sphinx-autorun/ $ pip install .
To enable autorun add ‘sphinx_autorun’ to the extension list in conf.py:
extensions.append('sphinx_autorun')
The documentation is in the doc/ folder.
About this fork
sphinx-contrib/autorun was abandoned and broken for several months. Since it did not even work, this fork was created as a continuation of it with mostly critical fixes.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD License (BSD-2-Clause)
- Author: Hugo Osvaldo Barrera
- Requires: Python >=3.9
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx_autorun-2.0.0.tar.gz
.
File metadata
- Download URL: sphinx_autorun-2.0.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 250682bf16eef2bfad0cc9d9e142b464b9441433e8e4faebb9de8f952ebba791 |
|
MD5 | 0b81dc67d66c0618304d0fd164c3d5ff |
|
BLAKE2b-256 | 00ca0a4c9362ee0102431665066a858ad647b0c14b93eaa5c2ddb21fc8f0d246 |
File details
Details for the file sphinx_autorun-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: sphinx_autorun-2.0.0-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6789433e7ce03fbdc60e071c05d0a4d5a5448e755ba8876fdedf4a7e8363f70e |
|
MD5 | 72e0b5a7badcfa90625bf75d29c07d93 |
|
BLAKE2b-256 | aa2edf00ca6ef5bd9140d551e6ca17bd3b46950cefcaf38534fa3fe688ce5039 |