Metadata-Version: 2.1
Name: drawioedit
Version: 0.1.1
Summary: Simple interface to edit drawio files
Home-page: https://github.com/jinjamator/drawioedit
Author: Wilhelm Putz
Author-email: wp@aci.guru
License: ASL V2
Platform: UNKNOWN
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: System :: Installation/Setup
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Requires-Python: >=3.7
Description-Content-Type: text/x-rst
Requires-Dist: N2G
Requires-Dist: crc32c
Requires-Dist: requests

Introduction
==================


Drawioedit is a simple interface to edit drawio files. It uses N2G under the hood but simplifies it's usage and add some features. 

Features
-----------------

Drawioedit has following features:
    * load embedded drawio from png files
    * set styles of shapes
    * all of the N2G drawio features

Installation
------------

Install drawioedit by running:

.. code-block:: bash

    pip3 install drawioedit


Examples
---------

Set the fillcolor of a shapes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: python

    from drawioedit import DrawIOEdit
    import os

    drawing=DrawIOEdit(file_path=f'/path/to/test.drawio.png')
    drawing.set_shape_style('R1','fillColor','#ff0000')
    drawing.set_shape_style('R2','fillColor','#0000ff')
    drawing.set_shape_style('not existing','fillColor','#0000ff')

    print(drawing.xml())

Contribute
----------

- Issue Tracker: https://github.com/jinjamator/drawioedit/issues
- Source Code: https://github.com/jinjamator/drawioedit

Roadmap
-----------------

Selected Roadmap items:
    * add support for regeneration of png files with the updated data
    * add support for link styles
    * add class documentation

For documentation please refer to https://drawioedit.readthedocs.io/en/latest/

License
-----------------

This project is licensed under the Apache License Version 2.0

