Python CLI tool to convert SVG files to draw.io shape library
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 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)
)
SVG source:
- https://azure.microsoft.com/en-gb/patterns/styles/glyphs-icons/
- also known as Azure.microsoft.com UX Patterns
- Note: some of the icons are missing because link to SVG return 404
- This will be fixed by parsing SVG information from the HTML
Preview:
Shape library:
SVG source/documentation/sponsor links:
- https://github.com/David-Summers/Azure-Design
- One of the best Azure icons collections
Download shape library XML file:
- AI
- Application
- Compute
- Data
- Deployment
- Endpoint
- Generic
- Identity
- IoT
- Management
- Networking
- Office365
- Security
- Storage
- WorkLoad
Add to Draw.io
- AI
- Application
- Compute
- Data
- Deployment
- Endpoint
- Generic
- Identity
- IoT
- Management
- Networking
- Office365
- Security
- Storage
- Workload
Or all in one bundle: