HEX
Server: Apache
System: Linux beluga.o2switch.net 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP Thu May 7 23:17:13 UTC 2026 x86_64
User: sc3naki1272 (1113)
PHP: 8.3.33
Disabled: NONE
Upload Files
File: //opt/alt/python35/share/doc/alt-python35-pycairo/docs/index.rst
===================================
Pycairo - Python bindings for cairo
===================================

.. toctree::
   :maxdepth: 1
   :titlesonly:
   :hidden:

   changelog
   reference/index
   pycairo_c_api
   faq

.. currentmodule:: cairo
.. title:: Overview
.. include:: ../README.rst

----

Tarballs:
    https://github.com/pygobject/pycairo/releases
Git repo:
    https://github.com/pygobject/pycairo
Bug tracker:
    https://github.com/pygobject/pycairo/issues
Mailing list:
    https://lists.cairographics.org/cgi-bin/mailman/listinfo/cairo

See the ":ref:`reference_index`" for further details.

To use the pycairo library::

    import cairo

To build/install the library::

    python2/3 setup.py build
    python2/3 setup.py install

To run the tests::

    python2/3 setup.py test

The Python 2 version supports `xpyb
<https://xcb.freedesktop.org/XcbPythonBinding/>`__ integration which is
disabled by default. To enable, build as follows::

    python2 setup.py build --enable-xpyb
    # and for running tests:
    python2 setup.py test --enable-xpyb

For examples of pycairo code see the 'examples' directory that comes with the
pycairo distribution.

For author information see the git history as well as the now deleted
"ChangeLog" file in the git history.