Metadata-Version: 2.4
Name: bvg
Version: 1.0.4
Summary: BVG - Universal Binary Vector Graphics container
Author: BVG contributors
License: MIT
Project-URL: Homepage, https://github.com/madmenmadmen/bvg-project
Project-URL: Repository, https://github.com/madmenmadmen/bvg-project
Project-URL: Specification, https://github.com/madmenmadmen/bvg-spec
Project-URL: Issues, https://github.com/madmenmadmen/bvg-project/issues
Keywords: bvg,binary,vector,graphics,2d,svg alternative,zstd,lz4,zlib,rle,container,format
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Provides-Extra: zstd
Requires-Dist: zstandard>=0.21; extra == "zstd"
Provides-Extra: lz4
Requires-Dist: lz4>=4.0; extra == "lz4"
Provides-Extra: img
Requires-Dist: Pillow>=10; extra == "img"
Provides-Extra: qt
Requires-Dist: PyQt6>=6.5; extra == "qt"
Provides-Extra: all
Requires-Dist: zstandard>=0.21; extra == "all"
Requires-Dist: lz4>=4.0; extra == "all"
Requires-Dist: Pillow>=10; extra == "all"
Requires-Dist: PyQt6>=6.5; extra == "all"
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: zstandard>=0.21; extra == "dev"
Requires-Dist: lz4>=4.0; extra == "dev"
Requires-Dist: Pillow>=10; extra == "dev"

# bvg-py

Python implementation of BVG (Binary Vector Graphics) — a compact binary format for 2D vector graphics.

## Installation

```bash
pip install bvg
```

## Usage

```python
import bvg

doc = bvg.new(800, 600)
doc.rect(10, 20, 100, 50, fill="#ff0000")
doc.save("output.bvg", codec="zstd", level=19)
```

## Features

- Read and write BVG files
- Support for all chunk types: `COLR`, `GRAD`, `IMGS`, `STYL`, `NODE`, `META`, `THMB`
- Codecs: none, zlib, zstd, lz4, rle
- RLE prefilter support
- PyQt6 renderer (`bvg.render.qt.BvgCanvas`)

## Links

- Specification: https://github.com/madmenmadmen/bvg-spec
- C++ implementation: https://github.com/madmenmadmen/bvg-project/tree/main/bvg-cpp
- Rust implementation: https://github.com/madmenmadmen/bvg-project/tree/main/bvg-rust
- Java implementation: https://github.com/madmenmadmen/bvg-project/tree/main/bvg-java

## License

MIT
