Skip to main content
https://raw.githubusercontent.com/pygobject/pycairo/main/docs/images/pycairo.svg

Pycairo is a Python module providing bindings for the cairo graphics library. It depends on cairo >= 1.15.10 and works with Python 3.10+ and PyPy3. Pycairo, including this documentation, is licensed under the LGPL-2.1-only OR MPL-1.1.

The Pycairo bindings are designed to match the cairo C API as closely as possible, and to deviate only in cases which are clearly better implemented in a more ‘Pythonic’ way.

pip install pycairo

Installing Pycairo requires cairo including its headers. For more info see “Getting Started”.


import cairo

with cairo.SVGSurface("example.svg", 200, 200) as surface:
    context = cairo.Context(surface)
    x, y, x1, y1 = 0.1, 0.5, 0.4, 0.9
    x2, y2, x3, y3 = 0.6, 0.1, 0.9, 0.5
    context.scale(200, 200)
    context.set_line_width(0.04)
    context.move_to(x, y)
    context.curve_to(x1, y1, x2, y2, x3, y3)
    context.stroke()
    context.set_source_rgba(1, 0.2, 0.2, 0.6)
    context.set_line_width(0.02)
    context.move_to(x, y)
    context.line_to(x1, y1)
    context.move_to(x2, y2)
    context.line_to(x3, y3)
    context.stroke()
https://raw.githubusercontent.com/pygobject/pycairo/main/docs/images/example.svg

Features of the Pycairo bindings:

  • Provides an object oriented interface to cairo.

  • Queries the error status of objects and translates them to exceptions.

  • Provides a C API that can be used by other Python extensions.

  • Fully typed and documented API.

For more information visit https://pycairo.readthedocs.io

Metadata

Release files for pycairo 1.29.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycairo 1.29.2
File Size Uploaded
pycairo-1.29.2.tar.gz 666.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pycairo 1.29.2
File
pycairo-1.29.2-cp315-cp315t-win_arm64.whl CPython 3.15 CPython 3.15 free-threading Windows ARM64 Details
pycairo-1.29.2-cp315-cp315t-win_amd64.whl CPython 3.15 CPython 3.15 free-threading Windows x86-64 Details
pycairo-1.29.2-cp315-cp315-win_arm64.whl CPython 3.15 CPython 3.15 Windows ARM64 Details
pycairo-1.29.2-cp315-cp315-win_amd64.whl CPython 3.15 CPython 3.15 Windows x86-64 Details
pycairo-1.29.2-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details
pycairo-1.29.2-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
pycairo-1.29.2-cp314-cp314-win_arm64.whl CPython 3.14 CPython 3.14 Windows ARM64 Details
pycairo-1.29.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
pycairo-1.29.2-cp314-cp314-win32.whl CPython 3.14 CPython 3.14 Windows x86-32 Details
pycairo-1.29.2-cp313-cp313-win_arm64.whl CPython 3.13 CPython 3.13 Windows ARM64 Details
pycairo-1.29.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
pycairo-1.29.2-cp313-cp313-win32.whl CPython 3.13 CPython 3.13 Windows x86-32 Details
pycairo-1.29.2-cp312-cp312-win_arm64.whl CPython 3.12 CPython 3.12 Windows ARM64 Details
pycairo-1.29.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
pycairo-1.29.2-cp312-cp312-win32.whl CPython 3.12 CPython 3.12 Windows x86-32 Details
pycairo-1.29.2-cp311-cp311-win_arm64.whl CPython 3.11 CPython 3.11 Windows ARM64 Details
pycairo-1.29.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
pycairo-1.29.2-cp311-cp311-win32.whl CPython 3.11 CPython 3.11 Windows x86-32 Details
pycairo-1.29.2-cp310-cp310-win_arm64.whl CPython 3.10 CPython 3.10 Windows ARM64 Details
pycairo-1.29.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pycairo-1.29.2-cp310-cp310-win32.whl CPython 3.10 CPython 3.10 Windows x86-32 Details

Total release size: 17.0 MB

Release files / pycairo-1.29.2.tar.gz

Download URL pycairo-1.29.2.tar.gz
Size 666.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3e69fff74fe64f5ba2dfa31f67c6bdf26413342574047437d2ac520d35e9a489
BLAKE2b-256 checksum
How to use checksums
bb5e19ab2572981a996ce96b853a189d2dcced40506b67d9555a7568457abcf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp315-cp315t-win_arm64.whl

Download URL pycairo-1.29.2-cp315-cp315t-win_arm64.whl
Size 722.0 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
0e49de5b93fc1e76e670f368b9bd0ffc881c72f506e4293c4b4d79f52cbe4c47
BLAKE2b-256 checksum
How to use checksums
0fec3c2700abac22e3ea70c67cb27caa6c2960372ebb7361127328471a39fa7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp315-cp315t-win_amd64.whl

Download URL pycairo-1.29.2-cp315-cp315t-win_amd64.whl
Size 875.2 kB
Tags CPython 3.15 CPython 3.15 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
88cbf5632be0b9255822b457d3bfe4f9eb0bc24e5520f54b6c4334e4f5b0f5aa
BLAKE2b-256 checksum
How to use checksums
a9dbfb0d756cc1966a3e5f3c903f14136690d567983a571d1864e6e7ca1f8c21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp315-cp315-win_arm64.whl

Download URL pycairo-1.29.2-cp315-cp315-win_arm64.whl
Size 720.3 kB
Tags CPython 3.15 Windows ARM64
SHA-256 checksum
How to use checksums
6b0410280b82bf60a84185392f720c099d71524dd7983f93d9abe18c8b2cd3a6
BLAKE2b-256 checksum
How to use checksums
5e58708d622971b11215d113a27b8a3ca21815383ff2441eac8922b03a22aa0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp315-cp315-win_amd64.whl

Download URL pycairo-1.29.2-cp315-cp315-win_amd64.whl
Size 872.7 kB
Tags CPython 3.15 Windows x86-64
SHA-256 checksum
How to use checksums
c5dfa99afdde95b82325f240d144008a6b5be99405e74070540a1b7a857eb2a7
BLAKE2b-256 checksum
How to use checksums
9205427798a6722ee60ff9e1dbde0d6b67d56bdf4362c48c3239cf790804359e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp314-cp314t-win_arm64.whl

Download URL pycairo-1.29.2-cp314-cp314t-win_arm64.whl
Size 722.0 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
29e3389c0b6d3dafda1b2360a8938790c2c7b6971b78e109a565c1cb91f8ae9a
BLAKE2b-256 checksum
How to use checksums
b8612d6f8361ba8497bb23bbb8ec8b91959b2e71366a3af2830c5a758663eabd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp314-cp314t-win_amd64.whl

Download URL pycairo-1.29.2-cp314-cp314t-win_amd64.whl
Size 875.2 kB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
bc9e26b7e9577d3655509766275653aa945f101fb28c197496facf8c9ba90321
BLAKE2b-256 checksum
How to use checksums
4f74c751bab17d770a3092d79b111281a7dca420b1490dd6e6f5408faab884ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp314-cp314-win_arm64.whl

Download URL pycairo-1.29.2-cp314-cp314-win_arm64.whl
Size 720.2 kB
Tags CPython 3.14 Windows ARM64
SHA-256 checksum
How to use checksums
9bb09bca782b5e21a4beb698075b5504f234af0597920f0c0439979226a76182
BLAKE2b-256 checksum
How to use checksums
7836f785d5a974809f36247ee56d15ca135433d1bf3c2adf1eb8fd66150b6a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp314-cp314-win_amd64.whl

Download URL pycairo-1.29.2-cp314-cp314-win_amd64.whl
Size 872.8 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
786373ba1bd78fbdec02cb1c99254eef12438bf942dd13534fe61b948becb527
BLAKE2b-256 checksum
How to use checksums
42bf9d9eb2d0780440b1b5fe916e6a3abfa11e05f750b0ad643987cb9c0761d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp314-cp314-win32.whl

Download URL pycairo-1.29.2-cp314-cp314-win32.whl
Size 767.8 kB
Tags CPython 3.14 Windows x86-32
SHA-256 checksum
How to use checksums
98360270afaa909bcc1769f299160123322da29d2a7310763b0ddc16e624d5c6
BLAKE2b-256 checksum
How to use checksums
53d448e4b327563beae41c5eabea70c4b8b9aec790361dec02c338d4e8e2ac21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp313-cp313-win_arm64.whl

Download URL pycairo-1.29.2-cp313-cp313-win_arm64.whl
Size 694.6 kB
Tags CPython 3.13 Windows ARM64
SHA-256 checksum
How to use checksums
806cd0f1266776fb6e881ce322569f0439993d66df0eeb8a255b1316f947acd0
BLAKE2b-256 checksum
How to use checksums
8f9083ebe0ae1d66378306085c505e7bf7abd0060714695e303877c800ff6d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp313-cp313-win_amd64.whl

Download URL pycairo-1.29.2-cp313-cp313-win_amd64.whl
Size 845.3 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
0b87aa05a50a2c8cf2489dffc1b12f88b6e2fe384075f8c799367625081ca3cd
BLAKE2b-256 checksum
How to use checksums
23447f39568959f5b2997bb888728423aeab00617cf8844f8126ec9ddeee86c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp313-cp313-win32.whl

Download URL pycairo-1.29.2-cp313-cp313-win32.whl
Size 751.4 kB
Tags CPython 3.13 Windows x86-32
SHA-256 checksum
How to use checksums
50c30f88fa12b722ac8f997b67f83f5ea8fad06bc1d6c33dbdab504eb9978e56
BLAKE2b-256 checksum
How to use checksums
03e903a625a9da4f0f0f5cb9420b7e6419478363d27c91888d82717d38a224d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp312-cp312-win_arm64.whl

Download URL pycairo-1.29.2-cp312-cp312-win_arm64.whl
Size 695.6 kB
Tags CPython 3.12 Windows ARM64
SHA-256 checksum
How to use checksums
a9ed77de6f9ba148d493360d1b2a93be8a785c8ae855d4fd6e8df293ed58ddd8
BLAKE2b-256 checksum
How to use checksums
8007890c5d83d4f7d4972c496f6966c1257a46384fb93fbbfb8c207daea92e57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp312-cp312-win_amd64.whl

Download URL pycairo-1.29.2-cp312-cp312-win_amd64.whl
Size 846.9 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
b97fd674dea445eae40387353f32665dbe19080a2ef63df97fd81273afc6e9d1
BLAKE2b-256 checksum
How to use checksums
7e0e1571890c2ab04a6e4b59758ffbeab3c141fe08f909fb0d2f6e8cacfbe47a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp312-cp312-win32.whl

Download URL pycairo-1.29.2-cp312-cp312-win32.whl
Size 752.1 kB
Tags CPython 3.12 Windows x86-32
SHA-256 checksum
How to use checksums
75b1b6ff515b6bcb89e86c5f2bb4762c46f0fcbde6c444ea035c8fecd1bc8b55
BLAKE2b-256 checksum
How to use checksums
0fbe5433f918a50238f848e7f6e4d9662331f4c556a01e2e8dc58945c2af440f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp311-cp311-win_arm64.whl

Download URL pycairo-1.29.2-cp311-cp311-win_arm64.whl
Size 695.3 kB
Tags CPython 3.11 Windows ARM64
SHA-256 checksum
How to use checksums
fc75fca130e8f9b3d1548b322b0b79b149f482478d1b70e771c66c4dfc654d4f
BLAKE2b-256 checksum
How to use checksums
2d5e07ea27f0d615b876420ce7b1039f882be1adf9f074b1459ab9ce060350fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp311-cp311-win_amd64.whl

Download URL pycairo-1.29.2-cp311-cp311-win_amd64.whl
Size 846.5 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
00cb8f7a343e6ab5a6a2d275184b511ed2132ef1bdcba03487283cdc01b593d2
BLAKE2b-256 checksum
How to use checksums
2f0877eb56c6c441bda69bac6de4cc2e143a4559768a580da2820b4787ebfbeb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp311-cp311-win32.whl

Download URL pycairo-1.29.2-cp311-cp311-win32.whl
Size 752.0 kB
Tags CPython 3.11 Windows x86-32
SHA-256 checksum
How to use checksums
c66e08496678ba36d2d2aed2add1fade358b96c4842cb8b558c77ae01ca61fa7
BLAKE2b-256 checksum
How to use checksums
e0ad745fea890b749ef0a99068ffe51cdeb9182e91f84c9f8bf79dd3095471fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp310-cp310-win_arm64.whl

Download URL pycairo-1.29.2-cp310-cp310-win_arm64.whl
Size 695.3 kB
Tags CPython 3.10 Windows ARM64
SHA-256 checksum
How to use checksums
680a2bd4ab97d088483044774e8007ad7da109f0715df900f3bd328fe52c2e34
BLAKE2b-256 checksum
How to use checksums
d1c29f5cce8e06f6e2526cd7c41e4e1bd03670e8b18b75531c1c4682e376874c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp310-cp310-win_amd64.whl

Download URL pycairo-1.29.2-cp310-cp310-win_amd64.whl
Size 846.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
104dc796eaf9ae4194079e1948634cdc8b88088437e1fd8e997853d2e78407c6
BLAKE2b-256 checksum
How to use checksums
8b5c3072b9257b7fffa9ff3368bb94a22b549cefe7c0aafc2cf1c9285804bcc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / pycairo-1.29.2-cp310-cp310-win32.whl

Download URL pycairo-1.29.2-cp310-cp310-win32.whl
Size 752.0 kB
Tags CPython 3.10 Windows x86-32
SHA-256 checksum
How to use checksums
edbe75fe4267bda95f3bec1fcb6e90cccf10e72a8e2645bd1b3431e9a75225ce
BLAKE2b-256 checksum
How to use checksums
2e5f0890d23d6ce884fa3f3ee93fa8be5e41588b152901ce88c5d5a84a0d9e7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

1.29.2 This release

22 release files

1.19.1

1 release file

1.19.0

1 release file

1.18.2

1 release file

1.18.1

1 release file

1.18.0

1 release file

1.17.1

1 release file

1.17.0

1 release file

1.16.3

1 release file

1.16.2

1 release file

1.16.1

1 release file

1.16.0

1 release file

1.15.6

1 release file

1.15.5

1 release file

1.15.4

1 release file

1.15.3

1 release file

1.15.2

1 release file

1.15.1

1 release file

1.15.0

1 release file

1.14.1

1 release file

1.14.0

1 release file

1.13.4

1 release file

1.13.3

1 release file

1.13.2

1 release file

1.13.1

1 release file

1.13.0

1 release file

1.12.0

1 release file

1.11.1

1 release file

1.11.0

1 release file

1.10.0

1.8.10

1.8.8

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page