File: index.rst

package info (click to toggle)
pycairo 1.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,984 kB
  • sloc: ansic: 8,873; python: 3,688; makefile: 32; sh: 4
file content (59 lines) | stat: -rw-r--r-- 1,487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.. raw:: html

    <div class=section>

.. image:: images/pycairo.svg
   :align: center
   :width: 370px

|

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

   getting_started
   changelog
   tutorial/index
   reference/index
   c_api/index
   resources

.. currentmodule:: cairo
.. title:: Overview

.. include:: ../README.rst
    :start-after: |

----

PyPI:
    https://pypi.org/project/pycairo
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.

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

----

Alternatives:

* `cairocffi <https://doc.courtbouillon.org/cairocffi/>`__ provides a large subset of
  the pycairo API but instead of being implemented in C it uses `cffi
  <https://cffi.readthedocs.io/>`__ to talk to cairo. In case you'd prefer not
  to use a C extension then give this a try. Or if you use PyPy and want to
  benefit from the lower overhead of cffi compared to C extensions.
* `Qahirah <https://github.com/ldo/qahirah>`__ provides a more "pythonic" API
  with less focus on matching the cairo C API. It also isn't a C extension and
  uses the Python builtin `ctypes
  <https://docs.python.org/3/library/ctypes.html>`__ module to talk to cairo.