semvec/pypi-packages huggingface dataset:
chessanimate 1.0.0
Creates GIF animations from .PGN chess games
License: MIT
Requires Python: <4.0,>=3.10

# Chess Game Animation

This project generates an **animated GIF** of a chess game from a **PGN** file.

## Features
- Parses PGN files to extract moves
- Generates board images for each move
- Creates an animated GIF showing the game's progression

## Installation

### Conda (Recommended)

Install dependencies and activate the environment

```sh
conda create -n chess-animation -c conda-forge cairo pango gdk-pixbuf ffmpeg python-chess pillow imageio cairosvg
conda activate chess-animation

Install chessanimate with Pip

```sh
git clone https://github.com/djstompzone/chessanimate ~/chessanimate
cd ~/chessanimate
pip install .
```

### Manual Installation with Pip

Install python dependencies

```sh
pip install python-chess pillow imageio cairosvg
```

Install `chessanimate`

```sh
git clone https://github.com/djstompzone/chessanimate ~/chessanimate
cd ~/chessanimate
pip install .
```

You'll also need to manually install system dependencies

```sh
# Debian/Ubuntu
sudo apt install libcairo2-dev libjpeg-dev libgif-dev

# macOS
brew install cairo
```

## Usage

Requires a **PGN** file (e.g., `game.pgn`)

### Basic Usage

```sh
python -m chessanimate game.pgn
```

The output will be saved as `chess_animation.gif`.

### Customization

To customize the frame duration

```sh
python -m chessanimate game.pgn -d 500
```

To specify the output filenane

```sh
python -m chessanimate game.pgn -o animation.gif
```

For a full list of arguments, you can view the help

```sh
python -m chessanimate --help
```

## Dependencies
- **python-chess** - Chess board rendering & PGN parsing
- **Pillow** - Image processing
- **imageio** - GIF creation
- **cairosvg** - Converts SVG to PNG
- **Cairo** - Required for SVG rendering

## Output Example

![Example GIF](example.gif)

## License

MIT License.

## Credits

Author: [DJ Stomp](https://github.com/djstompzone)
Repo: [GitHub - chessanimate](https://github.com/djstompzone/chessanimate)
duck-math-py 0.2.1
This is a test library to learn workflow tools for python code.
License: MIT
Requires Python: >=3.12

# duck_math_py

`duck_math_py` is a simple Python package with a module called `calc.py` that provides a single method `total(x, y)` which returns the sum of `x` and `y`.

## Installation

You can install the package using pip:

```bash
pip install duck_math_py