Skip to main content

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:

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


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)

Uploaded Source

Built Distribution

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

codepic-0.2.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for codepic-0.2.0.tar.gz
Algorithm Hash digest
SHA256 138fc8b30ca606fb3a64428105d0034227abfbfdd5b2abad00688747a0b4e4ba
MD5 9f607fed3d3adb51410ecc0603e2519b
BLAKE2b-256 d12848dc057ac082ed94506edc250d7024906ed9900b832c1379090af048e524

See more details on using hashes here.

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

Hashes for codepic-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a116a2df76712d909377a2cd18f48734e7d6c56cc5688c8543e741517993ab5b
MD5 259466f4f842d653f108e45ac3c73774
BLAKE2b-256 0e24f8fa816dd6c4990024a062e87f13d696e55b98da2bc3ce254c537014e163

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