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:

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
  -f, --font_name TEXT            Font size in pt
  -s, --font_size INTEGER         Font size in pt
  -a, --aa_factor FLOAT           Antialias factor
  -s, --style TEXT
  -l, --lang TEXT
  -c, --clipboard                 Copy image to clipboard
  -f, --image_format [png|jpeg|bmp|gif]
                                  Antialias factor
  -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.1.3.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

codepic-0.1.3-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file codepic-0.1.3.tar.gz.

File metadata

  • Download URL: codepic-0.1.3.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for codepic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 699d2569a70cadccf6ee6f86d41c3ea9cc40654fbdf0ce3a37370af828a6e198
MD5 0d29ccb35a7948c0da3a9cb075ee7385
BLAKE2b-256 a78fed0e96e9dd24cacb1d35f075cf419de82c9af8c14819d9a01b230c6a38be

See more details on using hashes here.

File details

Details for the file codepic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: codepic-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.5 CPython/3.12.9 Linux/6.8.0-1021-azure

File hashes

Hashes for codepic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2474c5bbab94e0f2fbf5233fd1d66573dbc2a11c65bdc5dc8e9c16c03f674fc8
MD5 4e6f799a7861a5008b45d54f5dfb4ba6
BLAKE2b-256 2323ce08cc55ae827c951d74667ce45e85726188a66d69c59c41df64e27a5281

See more details on using hashes here.

Supported by

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