| 1 |
.. raw:: html |
| 2 |
|
| 3 |
<div class=section> |
| 4 |
|
| 5 |
.. image:: images/pycairo.svg |
| 6 |
:align: center |
| 7 |
:width: 370px |
| 8 |
|
| 9 |
| |
| 10 |
|
| 11 |
.. toctree:: |
| 12 |
:maxdepth: 1 |
| 13 |
:titlesonly: |
| 14 |
:hidden: |
| 15 |
|
| 16 |
getting_started |
| 17 |
changelog |
| 18 |
tutorial/index |
| 19 |
reference/index |
| 20 |
c_api/index |
| 21 |
resources |
| 22 |
|
| 23 |
.. currentmodule:: cairo |
| 24 |
.. title:: Overview |
| 25 |
|
| 26 |
.. include:: ../README.rst |
| 27 |
:start-after: | |
| 28 |
|
| 29 |
---- |
| 30 |
|
| 31 |
PyPI: |
| 32 |
https://pypi.org/project/pycairo |
| 33 |
Tarballs: |
| 34 |
https://github.com/pygobject/pycairo/releases |
| 35 |
Git repo: |
| 36 |
https://github.com/pygobject/pycairo |
| 37 |
Bug tracker: |
| 38 |
https://github.com/pygobject/pycairo/issues |
| 39 |
Mailing list: |
| 40 |
https://lists.cairographics.org/cgi-bin/mailman/listinfo/cairo |
| 41 |
|
| 42 |
See the ":ref:`reference_index`" for further details. |
| 43 |
|
| 44 |
For examples of pycairo code see the 'examples' directory that comes with the |
| 45 |
pycairo distribution. |
| 46 |
|
| 47 |
---- |
| 48 |
|
| 49 |
Alternatives: |
| 50 |
|
| 51 |
* `cairocffi <https://doc.courtbouillon.org/cairocffi/>`__ provides a large subset of |
| 52 |
the pycairo API but instead of being implemented in C it uses `cffi |
| 53 |
<https://cffi.readthedocs.io/>`__ to talk to cairo. In case you'd prefer not |
| 54 |
to use a C extension then give this a try. Or if you use PyPy and want to |
| 55 |
benefit from the lower overhead of cffi compared to C extensions. |
| 56 |
* `Qahirah <https://github.com/ldo/qahirah>`__ provides a more "pythonic" API |
| 57 |
with less focus on matching the cairo C API. It also isn't a C extension and |
| 58 |
uses the Python builtin `ctypes |
| 59 |
<https://docs.python.org/3/library/ctypes.html>`__ module to talk to cairo. |