Metadata-Version: 2.1
Name: codepic
Version: 0.2.0
Summary: Capture code in a picture
Home-page: https://github.com/automas-dev/codepic
License: MIT
Author: Thomas Harrison
Author-email: theharrisoncrafter@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: click (>=8.1.8,<9.0.0)
Requires-Dist: pillow (>=11.1.0,<12.0.0)
Requires-Dist: pygments (>=2.19.1,<3.0.0)
Project-URL: Repository, https://github.com/automas-dev/codepic
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
```

