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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

etpy2png-0.0.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file etpy2png-0.0.2.tar.gz.

File metadata

  • Download URL: etpy2png-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.4

File hashes

Hashes for etpy2png-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8c01f2a58ab62030e1a9c68700608eb3318ef30b92fb46dbfb666197734ba5ad
MD5 df4877a06946a7a582a0c91f5c5474d7
BLAKE2b-256 c3a72d1b0af1efbaff19fd5d5d4f2eafb3d10e76fed307fac63f3c9cf195b678

See more details on using hashes here.

File details

Details for the file etpy2png-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: etpy2png-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.4

File hashes

Hashes for etpy2png-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6ae2173f3baf32da04e759d3bcb424b030c904ddd6530df1567eb31e2fc74779
MD5 2d40fbb4b6e99e7a11f586ffdc9f8f4f
BLAKE2b-256 987d0a4ed333c9edf8d4b5ce4a34537e86d80b4142aecb5594d09d32a6017351

See more details on using hashes here.

Supported by

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