svg.py
SVG drawing library
Decision gist · record as of 2026-08-14
Yes, if you need straightforward SVG generation and can tolerate aging maintenance. The library is stable (Production/Stable status), has no dependencies, and covers the SVG standard well. However, verify that your target SVG features are already implemented, since the last release was 229 days ago and there is no recent development activity. Not recommended if you need active bug fixes or cutting-edge SVG feature support.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low friction: pure Python wheel with no runtime dependencies.
- Maintenance signal is aging—last release was 229 days ago and the repository shows no recent activity, though it remains archived=false with 395 stars.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2025-12-28 (229 days) · last repo commit 2025-12-28 · 395 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 93,919 downloads/mo, #13,360 on PyPI
Alternatives
Verify before relying
pip install svg.py
import svg
canvas = svg.SVG(
width=60, height=60,
elements=[svg.Circle(cx=30, cy=30, r=20, stroke="red", fill="white")]
)
print(canvas)- Whether the aging maintenance status (229 days since last release) affects real-world usability for current SVG standards.
- Performance characteristics when generating large or complex SVG documents.
What it is and what it does
svg.py is a Python library for generating SVG files through a programmatic API. It provides type-safe, Pythonic bindings to SVG elements and attributes that follow the same names and structure as the SVG standard itself, so developers familiar with SVG markup can use the library intuitively. The library supports SVG standards 1.1, 1.2, 2.0, and Tiny, and includes only attributes that actually work—no deprecated features.
You construct SVG documents by instantiating element classes (Circle, Rectangle, Path, etc.) with their attributes, nest them into an SVG container, and print or serialize the result. With zero runtime dependencies and pure Python implementation, it installs and runs with minimal friction. The trade-off is that maintenance has slowed: the last release was 229 days ago, so you should verify that any SVG features you need are already supported.
Use it for
- Generate diagrams, charts, or graphs programmatically for web applications or reports.
- Create vector graphics in data visualization pipelines without learning SVG markup syntax.
- Build design tools or editors that emit SVG output from user input or algorithmic generation.
- Produce scalable icons or illustrations as part of an automated build or content pipeline.
- Test or validate SVG rendering by generating test fixtures with known structure.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need straightforward SVG generation and can tolerate aging maintenance.
The library is stable (Production/Stable status), has no dependencies, and covers the SVG standard well. However, verify that your target SVG features are already implemented, since the last release was 229 days ago and there is no recent development activity. Not recommended if you need active bug fixes or cutting-edge SVG feature support.
Install
svg-py on PyPI
Before you install
Low friction: pure Python wheel with no runtime dependencies. Maintenance signal is aging—last release was 229 days ago and the repository shows no recent activity, though it remains archived=false with 395 stars.
License in practice
MIT license (permissive) places no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install svg.py
import svg
canvas = svg.SVG(
width=60, height=60,
elements=[svg.Circle(cx=30, cy=30, r=20, stroke="red", fill="white")]
)
print(canvas)
Verify before relying
- Whether the aging maintenance status (229 days since last release) affects real-world usability for current SVG standards.
- Performance characteristics when generating large or complex SVG documents.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 229 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 93,919 / month, #13,360 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonTopic :: Software Development |
Evidence: svg_py-1.10.0-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 › “svg builder library”
- svg.pyGenerates SVG files programmatically in Python using a type-safe API…
- svgwriteCreates SVG drawings programmatically by building XML elements and…
- sphinxcontrib-svg2pdfconverterConverts SVG images to PDF or PNG for Sphinx documentation builders…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also drawsvg · svgwrite · pictex · svglib · CairoSVG · PyQRCode · dash-svg · svgelements · schemdraw · genbadge