Code Pic
Capture code in a picture.
Generate an image of code using pygments syntax highlighting.
For example:
Usage
$ codepic --help
Usage: codepic [OPTIONS] SOURCE_FILE
Options:
-w, --width TEXT Fixed width in pixels or percent
-h, --height TEXT Fixed hight in pixels or percent
--line_numbers Show line numbers
-p, --pad INTEGER Padding in pixels
--font_name TEXT Font size in pt
--font_size INTEGER Font size in pt
-a, --aa_factor FLOAT Antialias factor
-s, --style TEXT
-l, --lang TEXT
-c, --clipboard Output image to clipboard
-f, --image_format [png|jpeg|bmp|gif]
Image format
-o, --output FILE Output path for image
--help Show this message and exit.
Install
make install
Develop
make setup
Lint / Formatting
make lint
make format
Testing
make test
Release files for codepic 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| codepic-0.2.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| codepic-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / codepic-0.2.1.tar.gz
| Download URL | codepic-0.2.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f7d1673f26a82919ebcbd55b9300546c5f2f489a11d13c809f69e550b28f175
|
|
BLAKE2b-256 checksum How to use checksums |
84119034b163eea04178670359ca6ab829797584d62a658e8ae7c81070ab03b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / codepic-0.2.1-py3-none-any.whl
| Download URL | codepic-0.2.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0db7a6ff1b70574c71a7e4a1b029e4ea3950d76986d47b0a4eb259e4c62592d2
|
|
BLAKE2b-256 checksum How to use checksums |
ae01a41b5563cb1a378acf3388b3cd52677cb299d8ad3fce233a6d3c2fc62116
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|