Skip to main content

DioMindmap

DioMindmap allows you to create Draw.io mind map diagrams in a simple and intuitive way.

Given a simple indented text file like this:

Root
    First child
        First grandchild
        Second grandchild
    Second child
        First grandchild
        Second grandchild

The following diagram will be generated (in Draw.io compatible XML format):

Installation

pipx install diomindmap

Usage

diomindmap generate -i <input_file> -o <output_file>

Use diomindmap generate --help for more information on command line arguments.

Input file format

The input file is a simple text file that uses indentation to define the hierarchy of the mind map. The indentation can be either spaces or tabs, but must be consistent throughout the file.

The file may contain multiple root nodes, for example:

Root 1
    First child
        First grandchild
Root 2
    First child

In this case each root node will be rendered as a separate tab within Draw.io.

Implementation details

  • The project structure is managed with Projen.
  • Poetry is used for dependency management (integration with Projen).
  • Typer is used for CLI related functionality.
  • N2G is used to generate the Draw.io compatible XML file.

Maintenance and contributing

You are welcome to contribute to this project, but please note that I will not necessarily have time review and merge
pull requests. I created this project to do one simple thing, and it does that well enough for my purposes.

I don't currently plan to add any new features. If you would like to take this further, please consider forking the project.

Ideas

Even though I don't plan on any new features, the following ideas might be worth considering:

  • Support passing the layout algorithm as an argument.
  • Support directories / glob patterns as input to batch process an entire directory of input files.
  • Write tests.
  • Add GitHub actions to run build the project and publish to PyPi.
  • Is there a way to directly open the generated XML file in Draw.io?

License

MIT License

Copyright (c) [2023] [Anrich van Schalkwyk]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for diomindmap 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diomindmap 0.1.5
File Size Uploaded
diomindmap-0.1.5.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for diomindmap 0.1.5
File Interpreter ABI Platform
diomindmap-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / diomindmap-0.1.5.tar.gz

Download URL diomindmap-0.1.5.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
38724d4c75dd5b8fa4b11c54aa0d454b982bd0e71dd41cb8ea9f3eaf2ef229b1
BLAKE2b-256 checksum
How to use checksums
1a1ef5ba4bfd8e528edfb6454652c909f367ce4e68e313d33916288ecff15809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.1.38-1-lts

Release files / diomindmap-0.1.5-py3-none-any.whl

Download URL diomindmap-0.1.5-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
870d2c3d1165e932b139faa89e8e39ba6267a68ceff44bc7581ee70bb2728fa8
BLAKE2b-256 checksum
How to use checksums
9519d8f37d9373866e74f024d6e9f3f3e3b9fb8b312716ff3c7173a863d49e6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.1.38-1-lts

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page