Skip to main content

Create Draw.io mind map diagrams with indented text files.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diomindmap-0.1.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

diomindmap-0.1.5-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file diomindmap-0.1.5.tar.gz.

File metadata

  • Download URL: diomindmap-0.1.5.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.1.38-1-lts

File hashes

Hashes for diomindmap-0.1.5.tar.gz
Algorithm Hash digest
SHA256 38724d4c75dd5b8fa4b11c54aa0d454b982bd0e71dd41cb8ea9f3eaf2ef229b1
MD5 2ec42dda82c730b720aac48f7c8c3881
BLAKE2b-256 1a1ef5ba4bfd8e528edfb6454652c909f367ce4e68e313d33916288ecff15809

See more details on using hashes here.

File details

Details for the file diomindmap-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: diomindmap-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Linux/6.1.38-1-lts

File hashes

Hashes for diomindmap-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 870d2c3d1165e932b139faa89e8e39ba6267a68ceff44bc7581ee70bb2728fa8
MD5 6e889f233e47306997580b4b2005a668
BLAKE2b-256 9519d8f37d9373866e74f024d6e9f3f3e3b9fb8b312716ff3c7173a863d49e6b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page