Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visio_json_export-0.1.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

visio_json_export-0.1.2-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file visio_json_export-0.1.2.tar.gz.

File metadata

  • Download URL: visio_json_export-0.1.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/10

File hashes

Hashes for visio_json_export-0.1.2.tar.gz
Algorithm Hash digest
SHA256 288ec53922f7122d04c7ba30745ecfeba632916670839b7312ca34442b202e1f
MD5 77737d853db2e6db644b9d26b870a696
BLAKE2b-256 759f4cd41684fe0b3a83854b7db8f1426eb9221825b32b624cb2f0d2ecf4a602

See more details on using hashes here.

File details

Details for the file visio_json_export-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: visio_json_export-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.7 Windows/10

File hashes

Hashes for visio_json_export-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f730e67cf062506a5680a0f0d456d88bf610becbe74b63c6674119b95ef658b7
MD5 57bc4c97ec0bab1d8e55e58fa9ace1c0
BLAKE2b-256 87b095c6b8c0e5d621a5d328487321572506d2759791d84ee1948edf9c0e53ce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page