Capture code in a picture
Project description
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
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
codepic-0.2.0.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codepic-0.2.0.tar.gz.
File metadata
- Download URL: codepic-0.2.0.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
138fc8b30ca606fb3a64428105d0034227abfbfdd5b2abad00688747a0b4e4ba
|
|
| MD5 |
9f607fed3d3adb51410ecc0603e2519b
|
|
| BLAKE2b-256 |
d12848dc057ac082ed94506edc250d7024906ed9900b832c1379090af048e524
|
File details
Details for the file codepic-0.2.0-py3-none-any.whl.
File metadata
- Download URL: codepic-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.12.11 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a116a2df76712d909377a2cd18f48734e7d6c56cc5688c8543e741517993ab5b
|
|
| MD5 |
259466f4f842d653f108e45ac3c73774
|
|
| BLAKE2b-256 |
0e24f8fa816dd6c4990024a062e87f13d696e55b98da2bc3ce254c537014e163
|