Metadata-Version: 2.4
Name: codepic
Version: 0.2.1
Summary: Capture code in a picture
Author: Thomas Harrison
Author-email: Thomas Harrison <theharrisoncrafter@gmail.com>
License-Expression: MIT
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Requires-Dist: click>=8.4.0
Requires-Dist: pillow>=12.2.0
Requires-Dist: pygments>=2.20.0
Requires-Python: >=3.11
Description-Content-Type: text/markdown

# Code Pic

Capture code in a picture.

Generate an image of code using pygments syntax highlighting.

For example:

![example](docs/test.png)

## Usage

```text
$ 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

```sh
make install
```

### Develop

```sh
make setup
```

#### Lint / Formatting

```sh
make lint
make format
```


#### Testing

```sh
make test
```
