markdown_code_exec
Execute Python code in Markdown files and captures the output
Copyright 2022 Sebastiaan Mathôt
Command-line usage
usage: markdown_code_exec.py [-h] [-i INPUT] [-o OUTPUT]
optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT input markdown file -o OUTPUT, --output OUTPUT output markdown file
Function reference
markdown_code_exec.parse_text(md)
Takes a str containing markdown text, finds code blocks in the
markdown, executes these code blocks and captures the output, and then
embeds the captured output in the markdown.
Parameters
- md: str : The input markdown string
Returns
str The compiled markdown string
markdown_code_exec.parse_file(src, dst)
Takes a markdown input file, executes code blocks while capturing output and writes the result to a new output file.
src: str The full path to the input file dst: str The full path to the output file
License
GNU General Public License 3
Metadata
Release files for markdown_code_exec 0.3.0
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 |
|---|---|---|---|---|
| markdown_code_exec-0.3.0.tar.gz | 3.1 kB | Without provenance | Details for markdown_code_exec-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| markdown_code_exec-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for markdown_code_exec-0.3.0-py3-none-any.whl |
Total release size: 6.8 kB
Release files / markdown_code_exec-0.3.0.tar.gz
| Download URL | markdown_code_exec-0.3.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bcee95ce29755ae32ea118935de559cedda17313d369138389b3f68df1e4d987
|
|
BLAKE2b-256 checksum How to use checksums |
4970abc3716f83be8c7b349241a5ddc3ecc3301f824677b77c7a1767e068107f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Release files / markdown_code_exec-0.3.0-py3-none-any.whl
| Download URL | markdown_code_exec-0.3.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
85cdcf95958f8fbac93e926c8615ed3d5697487f4c219dfeb34ea5b923aea439
|
|
BLAKE2b-256 checksum How to use checksums |
f01325d7dbec32a92151b01f28da548d0ac778557a2c5229d832a989c588ba35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.25.1
|
Security for markdown_code_exec 0.3.0
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.