akx / svg2drawiolib

Python tool to convert SVG files to draw.io library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

svg2drawiolib

Python CLI tool to convert SVG files to draw.io shape library

Usage

python3 src/app.py --help

or

svg2drawiolib --help
usage: app.py [-h] [--mode {data,xml}] [--output OUTPUT] [--style STYLE] [--width WIDTH]
              [--height HEIGHT] [--prefix PREFIX] [--dirtitle] [--log-level LOG_LEVEL]
              [input ...]

input parameters

Input parameter is one or more directories or file globs patterns.

  • For input directories built-in file discovery finds recursively all SVG file(glob.iglob(directory + '/**/*.svg', recursive=True))
  • For files and glob pattern file discory runs recursive glob(glob.iglob(x, recursive=True))

Projects using this tool

MSFT glyphs for Draw.io

SVG source:

Preview:

Alt text

Shape library:

Azure Icons for Draw.io by David Summers

SVG source/documentation/sponsor links:

Preview Alt text Alt text

Download shape library XML file:

Add to Draw.io

Or all in one bundle:

All-in-one

About

Python tool to convert SVG files to draw.io library

License:Apache License 2.0


Languages

Language:Python 100.0%