mjumbewu
mjumbewu

Reputation: 1124

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.

Upvotes: 11

Views: 16141

Answers (2)

Bryce
Bryce

Reputation: 204

Kiva, part on Enable, is a library which abstracts the vector renderer. It supports cairo, Agg, and several other renderers, though Agg is the default. It works on Linux, OS X and Windows.

Upvotes: 7

Simon Sapin
Simon Sapin

Reputation: 10190

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

Upvotes: 4

Related Questions