Skip to main content

Capture code in a picture

Reason this release was yanked:

wrong version bump

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.4.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.1.4-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codepic-0.1.4.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.1.4.tar.gz
Algorithm Hash digest
SHA256 b00e8588b95a254abcf1d84f1114ddfa2b975c5ee8d926a0ab930f78fd7f59af
MD5 5bc154394c9492dc7e2cb14ec3124886
BLAKE2b-256 fc2c73a9854a45aa398060e967dfc15bcfdf7b2ae4f67952fd79cd07e0e69489

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codepic-0.1.4-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.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ec9c0666e94118b387ec181ab45b663799be5600df49a6085462feefa5ef2894
MD5 e2b9819241f9d779b7f347ae278ee067
BLAKE2b-256 9426b44ee5af2969d8073be4cfbc6025200de3d477ffec16772223d56ca76215

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