Skip to content

Python tools to create and manipulate SVG files

License

Notifications You must be signed in to change notification settings

andreashaerter/svg_utils

 
 

Repository files navigation

https://travis-ci.org/btel/svg_utils.svg?branch=master https://readthedocs.org/projects/svgutils/badge/?version=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 pip utility:

pip install svgutils --user

Note that the pip 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 sources

To install system-wide (needs administrator privilages):

python setup.py install

To install locally (do not forget to add $HOME/python/lib/python2.6/site-packages/ to your Python path):

python 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 ([email protected])

About

Python tools to create and manipulate SVG files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%