https://github.com/baseplate-admin/resvg-py
High level wrapper of resvg in python
https://github.com/baseplate-admin/resvg-py
maturin pyo3 pypy pytest python resvg svg svg-to-png svg-to-png-converter
Last synced: about 1 month ago
JSON representation
High level wrapper of resvg in python
- Host: GitHub
- URL: https://github.com/baseplate-admin/resvg-py
- Owner: baseplate-admin
- License: mit
- Created: 2024-02-24T04:23:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-01T05:04:46.000Z (9 months ago)
- Last Synced: 2024-08-07T10:12:15.890Z (9 months ago)
- Topics: maturin, pyo3, pypy, pytest, python, resvg, svg, svg-to-png, svg-to-png-converter
- Language: Rust
- Homepage: https://resvg-py.readthedocs.io
- Size: 3.87 MB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: docs/contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# resvg_py
[](https://pepy.tech/project/resvg_py) [](https://github.com/baseplate-admin/resvg-py/actions/workflows/CI.yaml) [](https://resvg-py.readthedocs.io/en/latest/?badge=latest) [](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 = """
"""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.