---
title: "cairosvg 2.0.0 Breaking Changes on PyPI | Since.dev"
description: "What each cairosvg release removed, renamed or changed: 93 breaking changes in 3 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/cairosvg
last_updated: 2026-12-04
---

# cairosvg breaking changes

cairosvg 2.0.0 (November 24, 2016) is its newest release with breaking changes, 79 of them. The first: Drops pycairo support in CairoSVG 2.0.0. Every breaking API change we have recorded in cairosvg on PyPI: 93 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.9.1`, released September 7, 2026. [Source repository](https://github.com/Kozea/CairoSVG)

Its 2.0.0 release drops Python 2. [Python end of life dates](https://since.dev/calendar/python.md).

- From [1.0](#v-1-0) to [2.0.0](#v-2-0-0): 79 breaking changes in 1 version.
- From [0.5](#v-0-5) to [2.0.0](#v-2-0-0): 92 breaking changes in 2 versions.

## cairosvg 2.0.0 breaking changes

cairosvg 2.0.0, released November 24, 2016: 79 breaking changes.

- **Removed**  

pycairo is no longer supported; install cairocffi instead. [github.com](https://github.com/Kozea/CairoSVG/releases/tag/2.0.0)
- **Removed**  

Python 2 is no longer supported, so code running on Python 2 must move to Python 3. [github.com](https://github.com/Kozea/CairoSVG/releases/tag/2.0.0)
- **Removed** `cairosvg.css.CSS_CAPABLE`  

cairosvg.css.CSS_CAPABLE was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.css.HAS_LXML`  

cairosvg.css.HAS_LXML was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.css.iteritems`  

cairosvg.css.iteritems was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.parser.basestring`  

cairosvg.parser.basestring was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.parser.HAS_LXML`  

cairosvg.parser.HAS_LXML was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.parser.NOT_INHERITED_ATTRS`  

cairosvg.parser.NOT_INHERITED_ATTRS was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.parser.urls`  

cairosvg.parser.urls was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.colors`  

cairosvg.surface.colors was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.defs`  

cairosvg.surface.defs was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.helpers`  

cairosvg.surface.helpers was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.cairo`  

cairosvg.surface.image.cairo was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.image`  

cairosvg.surface.image.image was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.node_format`  

cairosvg.surface.image.node_format was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.open_data_url`  

cairosvg.surface.image.open_data_url was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.preserve_ratio`  

cairosvg.surface.image.preserve_ratio was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.size`  

cairosvg.surface.image.size was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.image.Tree`  

cairosvg.surface.image.Tree was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.MultipageSurface`  

cairosvg.surface.MultipageSurface was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.parse_def`  

cairosvg.surface.parse_def was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.draw_marker`  

cairosvg.surface.path.draw_marker was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.normalize`  

cairosvg.surface.path.normalize was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.path`  

cairosvg.surface.path.path was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.PATH_LETTERS`  

cairosvg.surface.path.PATH_LETTERS was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.PATH_TAGS`  

cairosvg.surface.path.PATH_TAGS was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.point`  

cairosvg.surface.path.point was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.point_angle`  

cairosvg.surface.path.point_angle was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.quadratic_points`  

cairosvg.surface.path.quadratic_points was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.rotate`  

cairosvg.surface.path.rotate was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.path.size`  

cairosvg.surface.path.size was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.shapes`  

cairosvg.surface.shapes was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.Surface.draw_root`  

Surface.draw_root was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.svg.node_format`  

cairosvg.surface.svg.node_format was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.svg.preserve_ratio`  

cairosvg.surface.svg.preserve_ratio was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.svg.size`  

cairosvg.surface.svg.size was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.svg.svg`  

cairosvg.surface.svg.svg was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.tags`  

cairosvg.surface.tags was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.cairo`  

cairosvg.surface.text.cairo was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.distance`  

cairosvg.surface.text.distance was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.normalize`  

cairosvg.surface.text.normalize was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.point_angle`  

cairosvg.surface.text.point_angle was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.size`  

cairosvg.surface.text.size was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.text`  

cairosvg.surface.text.text was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.text.zip_letters`  

cairosvg.surface.text.zip_letters was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.surface.units`  

cairosvg.surface.units was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Removed** `cairosvg.VERSION`  

cairosvg.VERSION was removed in CairoSVG 2.0.0 [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Renamed** `cairosvg.surface.defs.apply_filter_after_painting`  

Use cairosvg.defs.apply_filter_after_painting instead. [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Renamed** `cairosvg.surface.defs.apply_filter_before_painting`  

Use cairosvg.defs.apply_filter_before_painting instead. [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)
- **Renamed** `cairosvg.surface.defs.draw_gradient`  

Use cairosvg.defs.draw_gradient instead. [pypi.org](https://pypi.org/project/CairoSVG/2.0.0/)

And 29 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cairosvg 1.0 breaking changes

cairosvg 1.0, released September 6, 2013: 13 breaking changes.

- **Removed** `cairosvg.parser.Node.xml_tree`  

Node.xml_tree was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.Surface.total_width`  

Surface.total_width was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.tags.text_path`  

cairosvg.surface.tags.text_path was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.tags.tspan`  

cairosvg.surface.tags.tspan was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.text.color`  

cairosvg.surface.text.color was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.text.text_path`  

cairosvg.surface.text.text_path was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Removed** `cairosvg.surface.text.tspan`  

cairosvg.surface.text.tspan was removed in CairoSVG 1.0 [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Renamed** `cairosvg.surface.filter_fill_or_stroke`  

Use cairosvg.surface.paint instead. [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Signature changed** `cairosvg.css.find_stylesheets`  

Was def find_stylesheets(tree); now def find_stylesheets(tree, url). [pypi.org](https://pypi.org/project/CairoSVG/1.0/)
- **Signature changed** `cairosvg.parser.Node.__init__`  

Was def \_\_init\_\_(self, node, parent=None); now def \_\_init\_\_(self, node, parent=None, parent_children=False, url=None). [pypi.org](https://pypi.org/project/CairoSVG/1.0/)

And 3 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## cairosvg 0.5 breaking changes

cairosvg 0.5, released December 13, 2012: 1 breaking change.

- **Signature changed** `cairosvg.surface.Surface.__init__`  

Was def \_\_init\_\_(self, tree, output, dpi); now def \_\_init\_\_(self, tree, output, dpi, parent_surface=None). [pypi.org](https://pypi.org/project/CairoSVG/0.5/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
