Metadata-Version: 2.1
Name: vsdx
Version: 0.2
Summary: vsdx - A python library for processing .vsdx files
Home-page: https://github.com/dave-howard/vsdx
Author: Dave Howard
Author-email: dave@copypy.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown

# vsdx - A python library for processing Visio .vsdx files

## Note: this is an early release with limited functionality

example:
from vsdx import VisioFile

# open a visio file
with VisioFile('my_file.vsdx') as vis:
    # get page shapes collection
    shapes = vis.page_objects[0].shapes
    # get shape to remove by its text value
    s = shapes[0].find_shape_by_text('Shape to remove')  # type: VisioFile.Shape
    # remove the shape if found
    if s:
        s.remove()
        # save a new copy
        vis.save_vsdx(filename[:-5] + '_shape_removed.vsdx')


Please refer to tests/test.py for usage examples


