$npx skillfedfor your agent

svgutils

Python SVG editor

With conditionsPyPI MarkupReleased Feb 202185.2K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — svgutils-0.3.4-py3-none-any.whl
v0.3.4 · released 2021-02-10 · 1 runtime deps: lxml

Yes, if you need to automate SVG figure assembly for scientific publications. The package is actively maintained, has low install friction, and solves a real problem for researchers. However, be aware that the latest release is from 2021 and Python version support is unclear—test it with your target Python version before relying on it in production pipelines.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires system development libraries libxml2-dev and libxslt-dev (or equivalent) for lxml compilation on Linux; conda installation avoids this requirement.
  • Installation is straightforward via pip, but requires system development libraries for lxml (libxml2-dev and libxslt-dev on Debian-based systems).
  • The package is actively maintained with recent commits.

License · maintenance · safety

permissive license (permissive) — Distributed under the MIT license, which is permissive and imposes no restrictions on use, modification, or distribution in your own projects.

last release 2021-02-10 (2011 days) · last repo commit 2026-06-29 · 336 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 85,227 downloads/mo, #13,940 on PyPI

Verify before relying

pip install svgutils

from svgutils.svg import SVG

fig = SVG('input.svg')
fig.scale(2.0)
fig.save('output.svg')
  • Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.7, 3.5)
  • Current state of the codebase given the 2011-day gap between first and latest release
  • Whether all documented features from the blog post and readthedocs are fully functional in version 0.3.4
Same gist for agents: .md · .json

What it is and what it does

svgutils is a Python library for programmatic SVG editing, designed primarily for scientists preparing publication-ready figures. It lets you load SVG files, scale and position them arbitrarily, add text labels and markers, and combine multiple SVGs into a single output. The package wraps lxml to handle the underlying XML manipulation, so you work with SVG elements and coordinates rather than raw XML.

Typical use involves loading one or more SVG files, arranging them on a canvas with specific dimensions and offsets, annotating them with labels or other markers, and saving the result. It's aimed at automating the tedious manual work of figure assembly in tools like Inkscape, particularly when you have many similar figures to prepare for journal submission.

Use it for

  • Combine multiple scientific plots (e.g., from matplotlib) into a single multi-panel figure with consistent layout.
  • Automatically add panel labels (A, B, C) and scale bars to a set of SVG figures for publication.
  • Programmatically position and scale diagram elements without opening a GUI editor.
  • Generate reproducible figure layouts as part of a data analysis pipeline or Jupyter notebook.
  • Batch-process SVG files to apply consistent transformations (scaling, positioning) across many figures.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to automate SVG figure assembly for scientific publications.

The package is actively maintained, has low install friction, and solves a real problem for researchers. However, be aware that the latest release is from 2021 and Python version support is unclear—test it with your target Python version before relying on it in production pipelines.

Install

svgutils on PyPI

Before you install

Installation is straightforward via pip, but requires system development libraries for lxml (libxml2-dev and libxslt-dev on Debian-based systems). The package is actively maintained with recent commits.

Requires system development libraries libxml2-dev and libxslt-dev (or equivalent) for lxml compilation on Linux; conda installation avoids this requirement.

License in practice

Distributed under the MIT license, which is permissive and imposes no restrictions on use, modification, or distribution in your own projects.

Quickstart

pip install svgutils

from svgutils.svg import SVG

fig = SVG('input.svg')
fig.scale(2.0)
fig.save('output.svg')

Verify before relying

  • Whether the package works reliably with modern Python versions beyond those listed in classifiers (2.7, 3.5)
  • Current state of the codebase given the 2011-day gap between first and latest release
  • Whether all documented features from the blog post and readthedocs are fully functional in version 0.3.4

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
lxml
MaintenanceActively maintained 2,011 days since the last release
Last repo commit
First released
Downloads85,227 / month, #13,940 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaEnvironment :: ConsoleIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Topic :: Multimedia :: Graphics :: Editors :: Vector-BasedTopic :: Scientific/Engineering :: VisualizationTopic :: Text Processing :: Markup

Evidence: svgutils-0.3.4-py3-none-any.whl

Tags

Capabilities
svg editor pythonsvg manipulation librarycombine svg filessvg scaling and positioningsvg figure annotationscientific figure preparationsvg concatenation
Topics
scientific-computingfigure-generationbatch-processing

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “svg editor python”

  • svgutilssvgutils lets you programmatically edit, scale, position, and…
  • svg.pyGenerates SVG files programmatically in Python using a type-safe API…
  • resvg_pyConverts SVG documents to raster image bytes using the resvg…

Give your agent the search over MCP, or paste the wish link into any chat.

More Markup packages

PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
markdown-it-py Worth it
PyPI · Python Modules · released May 2026

A Python markdown parser that converts markdown to HTML following the CommonMark specification, with support for plugins and custom syntax rules.

Install it if you need reliable markdown-to-HTML conversion.

MITpure Python · 3.10+
613.8Mdownloads / mo
beautifulsoup4 Worth it
PyPI · Python Modules · released Jun 2026

Beautiful Soup parses HTML and XML documents into a navigable tree, providing Pythonic methods to search, iterate, and modify the parsed content.

Install it if you need to parse or extract data from markup documents.

MITpure Python · 3.7.0+
432.1Mdownloads / mo
et-xmlfile With conditions
PyPI · Markup · released Oct 2024

et_xmlfile writes large XML files with minimal memory overhead by serializing elements to disk as they are created, rather than holding the entire tree in memory.

Install it if incremental XML writing fits your use case; skip it if your XML documents are small or you already use lxml.

MITpure Python · 3.8+dormant
343.3Mdownloads / mo
tomlkit Worth it
PyPI · Markup · released Jul 2026

Parses and edits TOML files while preserving formatting, comments, and structure, then serializes them back with layout intact.

Install it if you're building tools that touch TOML files and user readability of the source matters.

MITpure Python · 3.9+
338.0Mdownloads / mo
docstring-parser Worth it
PyPI · Python Modules · released Apr 2026

Parses Python docstrings in ReST, Google, Numpydoc, and Epydoc formats, extracting structured information like descriptions, parameters, return types, and exceptions.

Install it if you need to programmatically read and extract structured data from Python docstrings.

MITpure Python · 3.8+
274.9Mdownloads / mo

See also lovelyplots · svglib · CairoSVG · napari-svg · sphinxcontrib-svg2pdfconverter · SciencePlots · typst · kaleido · svgwrite · dash-svg