Skip to main content

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


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)

Uploaded Source

Built Distribution

etpy2png-0.0.10-py3-none-any.whl (1.4 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page