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.1.tar.gz (4.9 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: codepic-0.2.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for codepic-0.2.1.tar.gz
Algorithm Hash digest
SHA256 4f7d1673f26a82919ebcbd55b9300546c5f2f489a11d13c809f69e550b28f175
MD5 7aeaf88a114340d40d402e3e464306ac
BLAKE2b-256 84119034b163eea04178670359ca6ab829797584d62a658e8ae7c81070ab03b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: codepic-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for codepic-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0db7a6ff1b70574c71a7e4a1b029e4ea3950d76986d47b0a4eb259e4c62592d2
MD5 4c0d0e074b91c59eab3317c38cee1713
BLAKE2b-256 ae01a41b5563cb1a378acf3388b3cd52677cb299d8ad3fce233a6d3c2fc62116

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