https://github.com/btel/svg_utils
Python tools to create and manipulate SVG files
https://github.com/btel/svg_utils
hacktoberfest hacktoberfest2021 hactoberfest2022 svg
Last synced: 5 months ago
JSON representation
Python tools to create and manipulate SVG files
- Host: GitHub
- URL: https://github.com/btel/svg_utils
- Owner: btel
- License: mit
- Created: 2011-04-12T15:41:55.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2025-10-15T07:43:10.000Z (9 months ago)
- Last Synced: 2026-02-14T04:41:00.394Z (5 months ago)
- Topics: hacktoberfest, hacktoberfest2021, hactoberfest2022, svg
- Language: Python
- Homepage:
- Size: 1020 KB
- Stars: 332
- Watchers: 9
- Forks: 88
- Open Issues: 35
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.rst
Awesome Lists containing this project
README
.. image:: https://github.com/btel/svg_utils/workflows/Run%20the%20test%20suite/badge.svg
:target: https://github.com/btel/svg_utils/actions
.. image:: https://readthedocs.org/projects/svgutils/badge/?version=latest
:target: http://svgutils.readthedocs.io/en/latest/?badge=latest
Python-based SVG editor
=======================
This is an utility package that helps to edit and concatenate SVG
files. It is especially directed at scientists preparing final figures
for submission to journal. So far it supports arbitrary placement and
scaling of svg figures and adding markers, such as labels.
See the `blog post `_ for a short tutorial.
The full documentation is available
`here `_.
Install
-------
From PyPI
`````````
You can install `svgutils` from Python Package Index (PyPI) using the `pip3` utility::
pip3 install svgutils --user
Note that the `pip3` will attempt to install `lxml` library if it is not already installed.
For the installation to be sucessful, you need development libraries of `libxml2` and `libxslt1`.
On Ubuntu and other Debian-derived Linux distributions you can install them via::
sudo apt-get install libxml2-dev libxslt-dev
From Conda
``````````
Installing `svgutils` from the `conda-forge` channel can be achieved by adding `conda-forge` to your channels with::
conda config --add channels conda-forge
You can install `svgutils` from `conda-forge` channel::
conda install svgutils
If you don't want to add the channel to your configuration, you can specify it at the time of installation::
conda install svgutils -c conda-forge
From sources
````````````
To install system-wide (needs administrator privilages)::
python3 setup.py install
To install locally (do not forget to add
``$HOME/python/lib/python3.6/site-packages/`` to your Python path)::
python3 setup.py install --user
License
-------
The package is distributed under MIT license (see LICENSE file for
information).
Related packages
----------------
`svg_stack `_ is a similar
package that layouts multiple SVG files automatically (in a Qt-style).
`svgmanip `_ a related
library that aims for a simple API with the ability to export to
PNG accurately
`cairosvg `_ a command-line SVG to PNG converter
for Python 3.4+
`svglib `_ a pure-Python
library for reading and converting SVG
Authors
-------
Bartosz Telenczuk (bartosz.telenczuk@gmail.com)