Converting .py Code-Files to .png with Code-Highlighting.
Project description
etpy2png
Package to convert .py Code-Files to .png with Code-Highlighting.
Writes .py to Markdown in .ipynb and uses jupyter-nbconvert to convert to html with Code Highlighting (via pygments). Runs Selenium to capture a screenshot of the located html-element.
Usage
from etpy2png import convert
file = "sample.py"
convert(file)
Project details
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
etpy2png-0.0.10.tar.gz
(7.2 MB
view hashes)
Built Distribution
Close
Hashes for etpy2png-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0bc977db19150d6c1245fb5ae41933022d2e0281ef40322ce9c624d818a93dc4 |
|
MD5 | 4b5bdf966de59c52f31f167010c4b747 |
|
BLAKE2b-256 | 2a8d59687d00b1a7b6753d10c95e22b682db8e1da86337b1f8a798c19b8e5442 |