PyCairo tutorial

last modified July 17, 2023

This is PyCairo tutorial. In this tutorial, we are going to learn 2D graphics programming in Python and the Cairo library.

Table of Contents


PyCairo is a Python module for working with the Cairo library. It is a set of Python bindings to the Cairo C library. It closely matches the C API with the exception of cases, where more Pythonic way is desirable.

Related tutorials

The Cairo graphics tutorial covers the Cairo library in the C programming language.


My name is Jan Bodnar and I am a passionate programmer with many years of programming experience. I have been writing programming articles since 2007. So far, I have written over 1400 articles and 8 e-books. I have over eight years of experience in teaching programming.