pandoc-source-exec
pandoc-source-exec is a panflute pandoc filter.
It executes code annotated code blocks with the proper executables and adds the output below. Example:
```{ .python .exec }
print('Hello World')
```
The above can be compiled like this:
example.pdf: example.md example.py
pandoc --filter pandoc-source-exec -o $@ $<
The resulting output will include Hello World after the code block.
pandoc-source-exec offers many other features, including tikz plots, proper figures and code listings as well as including files as code.
For more examples check the example files.
Installation
Just use pip to install it from pypi
pip install pandoc-source-exec
Future
Execute code other than python
Refactor interactive execution, build REPL wrappers.
Allow configurable pre- and postfixes for the output
Metadata
Release files for pandoc-source-exec 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| pandoc-source-exec-0.2.2.tar.gz | 7.2 kB | Without provenance | Details for pandoc-source-exec-0.2.2.tar.gz |
Release files / pandoc-source-exec-0.2.2.tar.gz
| Download URL | pandoc-source-exec-0.2.2.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89f9650b0d710c9cd25a84c048885375f6bb4a2e51ec4c429ee3f777a1f204a6
|
|
BLAKE2b-256 checksum How to use checksums |
049c33ca822f74ecb477e1dde5d8a878d9f77519b988352cb00fb25d555f9102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
|
Security for pandoc-source-exec 0.2.2
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.