Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a better library for drawing vector graphics in Python than Cairo?

...Not that I have anything against Cairo -- I love it in fact. It's just terribly difficult to install the Python bindings, especially on a Mac (see all the SO questions about installing pycairo on OS X). Are there better alternatives?

Edit:

For a little more context, I'm creating a web service that I would like to be simple to deploy, ideally using standard installation channels; not being able to simply use pip or easy_install introduces complexity into the deployment process on many deployment platforms. Additionally, I'd like it to be easy for anyone to set up a virtual environment and do development on the application on their local machine. Again, ease of installation is an important point here.

like image 565
mjumbewu Avatar asked Oct 09 '11 14:10

mjumbewu


People also ask

Does Inkscape use Cairo?

The vector graphics application Inkscape uses the Cairo library for its outline mode display, as well as for PDF and PostScript export since release 0.46.

What is Cairo in Python?

An Introduction to Cairo with Python. Cairo is a library for drawing vector graphics.


1 Answers

cairocffi installs cleanly with pip/virtualenv and provides the same API as pycairo. http://packages.python.org/cairocffi/

like image 116
Simon Sapin Avatar answered Sep 21 '22 08:09

Simon Sapin