svgwrite
A Python library to create SVG drawings.
Decision gist · record as of 2026-08-14
Yes, if your use case fits the existing feature set and you do not require active maintenance. The library is stable, has no dependencies, and works reliably for core SVG generation. No, if you need ongoing feature development, responsive bug fixes, or active community support—the project is archived. Evaluate whether the 1.4.3 feature set meets your needs before committing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.6 or later; Python 2 support was removed in version 1.4.
- Installation is straightforward with no runtime dependencies.
- However, the package is abandoned as of version 1.4.2 and explicitly states no new features will be added—only bugfixes will be merged.
License · maintenance · safety
MIT License (permissive) — Licensed under MIT License (permissive), which allows commercial and private use with minimal restrictions.
last release 2022-07-14 (1492 days) · last repo commit 2024-02-24 · 578 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,399,791 downloads/mo, #3,081 on PyPI
Alternatives
Verify before relying
pip install svgwrite
import svgwrite
dwg = svgwrite.Drawing('test.svg', profile='tiny')
dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
dwg.add(dwg.text('Test', insert=(0, 0.2), fill='red'))
dwg.save()- Whether the abandoned status and lack of active maintenance poses a risk for long-term production use.
- Whether any SVG reading or import capability exists despite design intent to create-only.
What it is and what it does
svgwrite is a pure Python library for programmatically creating and writing SVG files. You instantiate a Drawing object, add SVG elements (lines, circles, text, paths, groups, etc.) via method calls, and save the result to an XML file. The library handles element construction, attribute validation, and XML serialization internally, with support for multiple SVG profiles and features like gradients, markers, animations, stylesheets, and embedded fonts.
The package has no external runtime dependencies and runs on any platform supporting Python 3.6+. However, it is now abandoned: as of version 1.4.2, no new features are being added and only bugfixes are merged. The repository is archived and the last release was 2022-07-14. This makes it suitable for stable use cases where the existing feature set is sufficient, but unsuitable for projects requiring active development or responsive maintainers.
Use it for
- Generate static SVG diagrams or charts from data without manual XML editing.
- Create vector graphics programmatically in automated workflows or batch processing.
- Build SVG animations and interactive graphics with embedded stylesheets and fonts.
- Export visualizations from Python applications as scalable vector files.
- Construct complex SVG structures via Python API calls without writing raw XML.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if your use case fits the existing feature set and you do not require active maintenance.
The library is stable, has no dependencies, and works reliably for core SVG generation. No, if you need ongoing feature development, responsive bug fixes, or active community support—the project is archived. Evaluate whether the 1.4.3 feature set meets your needs before committing.
Install
svgwrite on PyPI
Before you install
Installation is straightforward with no runtime dependencies. However, the package is abandoned as of version 1.4.2 and explicitly states no new features will be added—only bugfixes will be merged. Last release was 2022-07-14 and the repository is archived.
Requires Python 3.6 or later; Python 2 support was removed in version 1.4.
License in practice
Licensed under MIT License (permissive), which allows commercial and private use with minimal restrictions.
Quickstart
pip install svgwrite
import svgwrite
dwg = svgwrite.Drawing('test.svg', profile='tiny')
dwg.add(dwg.line((0, 0), (10, 0), stroke=svgwrite.rgb(10, 10, 16, '%')))
dwg.add(dwg.text('Test', insert=(0, 0.2), fill='red'))
dwg.save()
Verify before relying
- Whether the abandoned status and lack of active maintenance poses a risk for long-term production use.
- Whether any SVG reading or import capability exists despite design intent to create-only.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.6 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,492 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 2,399,791 / month, #3,081 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 7 - InactiveIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Multimedia :: GraphicsTopic :: Software Development :: Libraries :: Python Modules |
Evidence: svgwrite-1.4.3-py3-none-any.whl
Tags
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 › “create svg drawings”
- svgwriteCreates SVG drawings programmatically by building XML elements and…
- drawsvgProgrammatically generate SVG images and animations in Python, with…
- vtracerConverts raster images (JPG, PNG) into vector graphics (SVG) by…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
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.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also drawsvg · ezdxf · svg.py · svglib · sphinxcontrib-svg2pdfconverter · svgelements · svgpathtools · dash-svg · napari-svg · potracer