Metadata-Version: 2.4
Name: resvg_py
Version: 0.2.2
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
License-File: LICENSE
Author: baseplate-admin
Author-email: baseplate-admin <61817579+baseplate-admin@users.noreply.github.com>
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Source Code, https://github.com/baseplate-admin/resvg-py
Project-URL: Issues, https://github.com/baseplate-admin/resvg-py/issues
Project-URL: Documentation, https://resvg-py.readthedocs.io/

# resvg_py

[![Downloads](https://static.pepy.tech/badge/resvg_py)](https://pepy.tech/project/resvg_py) [![CI](https://github.com/baseplate-admin/resvg-py/actions/workflows/CI.yaml/badge.svg?branch=master)](https://github.com/baseplate-admin/resvg-py/actions/workflows/CI.yaml) [![Documentation Status](https://readthedocs.org/projects/resvg-py/badge/?version=latest)](https://resvg-py.readthedocs.io/en/latest/?badge=latest) [![Pypi Badge](https://img.shields.io/pypi/v/resvg-py.svg)](https://pypi.org/project/resvg-py/)

A safe and high level binding for the [resvg](https://github.com/RazrFalcon/resvg) project

## Install

```py
pip install resvg_py
```

Then use it like this:

```python

import resvg_py

svg_string = """
    <svg width="300" height="130" xmlns="http://www.w3.org/2000/svg">
      <rect width="200" height="100" x="10" y="10" rx="20" ry="20" fill="blue" />
    </svg>
"""

print(resvg_py.svg_to_bytes(svg_string=svg_string))

```

(if you want a more complex solution please check the [api](https://resvg-py.readthedocs.io/en/latest/resvg.html) or [usage](https://resvg-py.readthedocs.io/en/latest/usage.html). It exposes everything resvg has.)

## Requires

-   Python 3.8 or higher

---

This library is feature complete in my opinion.

