pyliter - Python syntax highlighting
pyliter is a Python 3 command-line tool that generates PNG files from python source.
Features
syntax highlighting
PNG files
preview mode
OpenGL rendering using pyglet
Install
$ pip install pyliter
$ pip install git+https://github.com/JnyJny/pyliter
Usage
$ pyliter --help
Usage: pyliter [OPTIONS] [INPUT_FILE]
Python syntax highlighting
Renders syntax-highlighted text to PNG file and optional previews the
render in a window before saving.
If the optional output path is omitted, preview is enabled.
Options:
-o, --output-file PATH Creates a PNG with the supplied path.
-l, --start-line INTEGER Line number to begin display. [default: 0]
-n, --line-count INTEGER Number of lines to display. [default: 10]
-N, --no-line-numbers Disable line numbers in output. [default: False]
-p, --preview Previews output in window. [default: False]
-t, --transparent Write output PNG with transparency. [default:
False]
-s, --style-name TEXT Style to apply to input file. [default: default]
-f, --font-name TEXT Font name. [default: courier]
-S, --font-size INTEGER Font size [default: 24]
-L, --list-styles List available styles and exits.
--version Show the version and exit.
--help Show this message and exit.
Example
Metadata
Release files for pyliter 1.5.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 |
|---|---|---|---|---|
| pyliter-1.5.0.tar.gz | 21.7 kB | Without provenance | Details for pyliter-1.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyliter-1.5.0-py3-none-any.whl | Python 3 | none | any | Details for pyliter-1.5.0-py3-none-any.whl |
Total release size: 56.7 kB
Release files / pyliter-1.5.0.tar.gz
| Download URL | pyliter-1.5.0.tar.gz |
|---|---|
| Size | 21.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
305916a78e628395cccfa98cf0d09eb9be0e6a0007c0024296811dd00236571a
|
|
BLAKE2b-256 checksum How to use checksums |
691eda95f951591bfe6816de899ea2288331fa8cd3116ece143d03b32820c1cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.5 Darwin/20.5.0
|
Release files / pyliter-1.5.0-py3-none-any.whl
| Download URL | pyliter-1.5.0-py3-none-any.whl |
|---|---|
| Size | 35.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87e3d077caa32ee1b198a48d97ca040c76a1b096f5810e394666d3d0c37522cd
|
|
BLAKE2b-256 checksum How to use checksums |
5706148ae8b05737504edc0da231dd6c0006403e208b729654a995647b56dc74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.5 Darwin/20.5.0
|
Security for pyliter 1.5.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.