Prose Code
Literate programming in Python from markdown to LaTeX
The prosecode library is being developed as a way to generate really neat LaTeX from markdown files.
It will support both tangling and weaving code.
That is, it can run the code from the markdown files and it can also extract the code into separate .py files.
It is assumed that the markdown file uses github style fenced code blocks with extra data as is used in the Markdown-Preview-Enhanced plugin for Atom and VSCode.
Installation (coming soon)
pip install prosecode
Tangling
The following will extract the python code from myfile.md and store it in files.
$ prosecode tangle myfile.md
There is an optional --srcdir parameter that tells where to put the tangled source code.
$ prosecode tangle myfile.md --srcdir src/
Weaving
The following will execute the code in myfile.md, place the output inline, and then convert it to LaTeX.
$ prosecode weave mdfile.md --execute=True --outfile someotherfile.tex
The --outfile parameter is optional. If omitted, it will simply replace .md with .tex.
There is also an optional parameter --execute that tells whether or not to execute the code chunks.
The default value is false.
Metadata
Release files for prosecode 0.2.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 | |
|---|---|---|---|---|
| prosecode-0.2.0.tar.gz | 6.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prosecode-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.0 kB
Release files / prosecode-0.2.0.tar.gz
| Download URL | prosecode-0.2.0.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff5b14184a6b3c5e780d382c674bd7d72018a696042ece72b882e2360909a237
|
|
BLAKE2b-256 checksum How to use checksums |
d1c978264805f370547f7e1cf293f536e7849012d0ce5c8ae2125447c01556fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Release files / prosecode-0.2.0-py3-none-any.whl
| Download URL | prosecode-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
292bd7301c75d53d652310a275c52e16fc83dfacc9c8cb5172a0c2c7752ddad6
|
|
BLAKE2b-256 checksum How to use checksums |
305eaa88c8a64e9e9a1dd7573150c935cdb991d1eaa0cb734672e69b6d7fb600
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6
|
Security for prosecode 0.2.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.