svgelements
Svg Elements Parsing
Decision gist · record as of 2026-08-14
Yes, if you need robust SVG parsing with geometric manipulation. The library is stable (Production/Stable, no known vulnerabilities) and has low install friction. However, it is dormant—last release was 2023-08-17—so expect no active maintenance. Use it for parsing and geometric operations, but do not rely on it for new SVG 2.0 features or rapid bug fixes. Suitable for established projects with stable SVG workflows.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Installation is straightforward with no hard dependencies.
- The package is dormant (last release 2023-08-17, last commit 2024-10-17), but remains in Production/Stable status with 171 repository stars.
- Soft dependencies (scipy, Pillow, numpy) are optional and enhance specific features.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the code freely as long as you include the original license notice.
last release 2023-08-17 (1093 days) · last repo commit 2024-10-17 · 171 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 956,872 downloads/mo, #4,645 on PyPI
Alternatives
Verify before relying
pip install svgelements
from svgelements import SVG, Path, Color, Matrix
# Parse an SVG file
svg = SVG.parse('file.svg')
# Access and manipulate elements
for shape in svg.shapes():
print(shape.fill, shape.stroke_width)- Whether soft dependencies (scipy, Pillow, numpy) are automatically detected and used when available, or require explicit configuration.
- Current state of backwards compatibility with svg.path library, given the project is dormant.
- Whether the package handles modern SVG 2.0 features beyond the stated SVG 1.1 conformance.
What it is and what it does
svgelements is a Python library that parses SVG files according to the SVG specification and exposes their geometry as manipulable Python objects. It provides classes for SVG elements like Path, Matrix, Color, Point, and shapes (Rect, Circle, Ellipse, Polygon, Line), along with transformation and rendering capabilities. The library was originally developed for meerK40t (a laser-cutting application) and aims to handle edge cases that simpler SVG parsers miss.
The package has no hard dependencies and can be used as a single-file module. It supports SVG/CSS lengths (px, pt, cm, mm, in, %), colors (keywords, hex, rgb, rgba, hsl), transformations, viewports, clipping paths, and groups. Optional soft dependencies (scipy for arc length, Pillow for image loading, numpy for fast linearization) enhance specific features. It does not currently support gradients, masks, markers, or full CSS stylesheets.
Use it for
- Parse SVG files for laser-cutting or CNC machine control applications, extracting geometric data for toolpath generation.
- Convert SVG shapes to Path objects and apply affine transformations (rotation, scaling, translation) for graphics manipulation.
- Extract and manipulate SVG colors, angles, and lengths using robust spec-compliant parsing to avoid edge cases.
- Build SVG analysis or transcoding tools that need to read, validate, and modify SVG content programmatically.
- Integrate SVG geometry into custom graphics pipelines by converting SVG elements to your own internal data structures.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need robust SVG parsing with geometric manipulation.
The library is stable (Production/Stable, no known vulnerabilities) and has low install friction. However, it is dormant—last release was 2023-08-17—so expect no active maintenance. Use it for parsing and geometric operations, but do not rely on it for new SVG 2.0 features or rapid bug fixes. Suitable for established projects with stable SVG workflows.
Install
svgelements on PyPI
Before you install
Installation is straightforward with no hard dependencies. The package is dormant (last release 2023-08-17, last commit 2024-10-17), but remains in Production/Stable status with 171 repository stars. Soft dependencies (scipy, Pillow, numpy) are optional and enhance specific features.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions. You may use, modify, and distribute the code freely as long as you include the original license notice.
Quickstart
pip install svgelements
from svgelements import SVG, Path, Color, Matrix
# Parse an SVG file
svg = SVG.parse('file.svg')
# Access and manipulate elements
for shape in svg.shapes():
print(shape.fill, shape.stroke_width)
Verify before relying
- Whether soft dependencies (scipy, Pillow, numpy) are automatically detected and used when available, or require explicit configuration.
- Current state of backwards compatibility with svg.path library, given the project is dormant.
- Whether the package handles modern SVG 2.0 features beyond the stated SVG 1.1 conformance.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Dormant 1,093 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 956,872 / month, #4,645 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 LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Multimedia :: GraphicsTopic :: Multimedia :: Graphics :: Editors :: Vector-BasedTopic :: Software Development :: Libraries :: Python ModulesTopic :: Utilities |
Evidence: svgelements-1.9.6-py2.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 parsing and geometry”
- svgelementssvgelements parses SVG files and provides geometric objects (Path,…
- svgpathtoolsReads, writes, and analyzes SVG Path objects and Bézier curves,…
- ocpsvgConverts between SVG path strings and OpenCASCADE topological objects…
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 svg.path · ocpsvg · svgpathtools · svglib · scour · drawsvg · dash-svg · svg.py · svgwrite · Geode-Conversion