vsdx
vsdx - A python library for processing .vsdx files
What it is and what it does
vsdx is a Python library for reading and writing Microsoft Visio .vsdx files without requiring Visio itself. It lets you programmatically find, modify, and remove shapes, read and set shape properties and data, and work with pages and connectors. The library also supports templating: you can embed Jinja2 code into a .vsdx file and render it with context data to generate new diagrams dynamically.
The package depends on Jinja2 for template rendering and the deprecation library for API lifecycle management. It supports Python 3.8 through 3.14 and is classified as Beta. The library is useful for automation workflows where you need to generate or modify Visio diagrams from data, extract information from existing diagrams, or build diagram-generation pipelines without manual intervention.
Use it for:
- Automate diagram generation from templates and data sources for reports or documentation.
- Extract shape text and properties from existing .vsdx files for data processing or migration.
- Programmatically modify Visio diagrams by finding and updating specific shapes or connectors.
- Build CI/CD pipelines that generate or update architecture or flowchart diagrams from configuration.
- Create batch operations to remove, duplicate, or reorganize shapes across multiple Visio files.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
vsdx reads, modifies, and creates Microsoft Visio .vsdx files programmatically, supporting shape manipulation, templating via Jinja2, and file I/O operations.
Yes, if you need to automate Visio file manipulation without Visio installed. The low install friction, permissive license, and broad Python version support make it straightforward to adopt. The aging maintenance status (222 days since last release) is a minor concern for long-term stability, but the repository is active and no security vulnerabilities are known. Verify that the feature set covers your specific use case before committing to production.
Install
vsdx on PyPI
pip
pip install vsdxuv
uv add vsdxpoetry
poetry add vsdxInstalling vsdx
Before you install
Low install friction: pure Python wheel with only two runtime dependencies (Jinja2 and deprecation). Maintenance status is aging—last release 222 days ago—but the repository is active and not archived, with recent commits as of 2026-01-04.
License in practice
Permissive license treatment means you can use this in commercial and proprietary projects without copyleft obligations.
Quickstart
from vsdx import VisioFile
with VisioFile('my_file.vsdx') as vis:
shape = vis.pages[0].find_shape_by_text('Shape to remove')
if shape:
shape.remove()
vis.save_vsdx('updated.vsdx')
Verify before relying
- Whether the package handles all Visio file format variations and edge cases reliably in production use.
- Performance characteristics when working with large or complex .vsdx files.
- Completeness of Jinja2 template support for complex conditional and loop scenarios.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — Jinja2, deprecation |
| Maintenance | aging — 222 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 160,732/month — #10,653 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: vsdx-0.6.1-py3-none-any.whl
Tags
More Utilities packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
charset-normalizerDetects and normalizes text encoding from…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
PygmentsPygments is a syntax highlighter that colorizes…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
Jinja2Jinja2 is a templating engine that renders…
permissive · top 100 on PyPI
brancaBranca generates HTML and JavaScript pages from…
permissive · top 5,000 on PyPI
pylnk3Reads, writes, and creates Windows .lnk…
copyleft · top 15,000 on PyPI
jinja-cliA command-line tool that renders Jinja2…
copyleft · top 15,000 on PyPI
MakoMako compiles Python-embedded templates into…
permissive · top 1,000 on PyPI
copier-template-extensionsExtends Copier's Jinja2 templating with a…
permissive · top 15,000 on PyPI
django-jinjaIntegrates Jinja2 templating into Django,…
permissive · top 15,000 on PyPI
html5taggerGenerates HTML5 markup programmatically using…
permissive · top 5,000 on PyPI
envtplRenders Jinja2 templates on the command line,…
copyleft · top 15,000 on PyPI
copier-templates-extensionsProvides a Jinja2 extension for Copier that…
permissive · top 15,000 on PyPI