VisioJsonExport
JSON export that follows the Visio object model. Allows you to process a document without a Visio application.
The export does only contain specific data like:
- User defined cells
- Properties
- Connections
The export does not contain common data like:
- Regular ShapeSheet cells (positions, colors, etc.)
In future we can extend data as reuired.
Usage
Export in .NET
For export we provide a NuGet package: https://www.nuget.org/packages/Geradeaus.VisioJsonExport
Geradeaus.VisioJsonExport.ExportHandler exportHandler = new Geradeaus.VisioJsonExport.ExportHandler(Globals.ThisAddIn.Application.ActiveDocument);
exportHandler.Parse();
exportHandler.Export(@"C:\Temp\VisioExport.json");
Process in Python
For processing in Python we provide a package on PyPi: https://pypi.org/project/visio-json-export
import visio_json_export
visio = visio_json_export.load_file(r'C:\Temp\VisioExport.json')
for page in visio.document.pages.values():
for shape in page.shapes.values():
for row_name, user in shape.user_rows.items():
print(page.name + ' -> ' + shape.name + ' -> ' + row_name + ' = ' + user.value)
for prop in shape.prop_rows.values():
print(page.name + ' -> ' + shape.name + ' -> ' + prop.label + ' = ' + prop.value)
Metadata
Release files for visio-json-export 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| visio_json_export-0.1.2.tar.gz | 3.2 kB | Without provenance | Details for visio_json_export-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| visio_json_export-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for visio_json_export-0.1.2-py3-none-any.whl |
Total release size: 7.1 kB
Release files / visio_json_export-0.1.2.tar.gz
| Download URL | visio_json_export-0.1.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
288ec53922f7122d04c7ba30745ecfeba632916670839b7312ca34442b202e1f
|
|
BLAKE2b-256 checksum How to use checksums |
759f4cd41684fe0b3a83854b7db8f1426eb9221825b32b624cb2f0d2ecf4a602
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Windows/10
|
Release files / visio_json_export-0.1.2-py3-none-any.whl
| Download URL | visio_json_export-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f730e67cf062506a5680a0f0d456d88bf610becbe74b63c6674119b95ef658b7
|
|
BLAKE2b-256 checksum How to use checksums |
87b095c6b8c0e5d621a5d328487321572506d2759791d84ee1948edf9c0e53ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.7 Windows/10
|
Security for visio-json-export 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.