Helps to process Visio JSON Exports in your Python projects.
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visio_json_export-0.1.0.tar.gz.
File metadata
- Download URL: visio_json_export-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0213ab852ec79c653f07c39094c5388111e32da29720b895364654d310037451
|
|
| MD5 |
c25c0ece8b75573e29f9846e190b8473
|
|
| BLAKE2b-256 |
14184402103b1b0c97815bc26c6f1cb2a0003a90e51ac466b80212a8452e3c48
|
File details
Details for the file visio_json_export-0.1.0-py3-none-any.whl.
File metadata
- Download URL: visio_json_export-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
333e5fe616fb49af330e523955ce5147fe7e6cce107a18ff05e3ea5448c9d60d
|
|
| MD5 |
a62b12455ad9a8ca1c99c27ae00180a2
|
|
| BLAKE2b-256 |
ac814ce654c8907ef3519dc587f8748d629c6ec21dbd2b3547bfef549cb063d7
|