Skip to main content

Model text file + layout text file -> beautiful diagram

Project description

Flatland Model Diagram (non) Editor

NEW Status January 13, 2025

I have recently rebuilt the entire application based on a series of modules available on GitHub and PyPI. Will be deploying in ernest in the coming days.

Am de-commisioning the old version on GitHub and PyPI named 'flatland-model-diagram-editor' Now it is just 'flatland' here on GitHub and 'mi-flatland' on PyPI

Ah yes, yet another tool for generating diagrams from text. But this one is different (otherwise I wouldn't have wasted all this time building it!)

I built Flatland because the following benefits are critical for productive model development:

  1. Complete separation of the model semantics from the diagram layout
  2. Complete separation of model semantics from model notation
  3. Consistent layout of model diagrams without forcing the user to accept or hack awkard, non-sensical placements of nodes and connectors (yeah, I'm lookin at YOU PlantUML)
  4. Maximum layout power with minimal specification: No more carpal tunnel pixel pushing!
  5. Beautiful, readable diagram output in many output formats (pdf, svg, etc)
  6. Support for industrial strength modeling (many hundreds and thousands of model elements)
  7. Use your favorite text editor and all the advanced facilities of it and whatever IDE you like without having to learn yet another draw tool that makes you and your team's life difficult.
  8. And since we're here on GitHub, wouldn't it be nice if all of your models were under proper configuration management where you and your team can diff and merge to your heart's content? Wouldn't it be nice to update a diagram layout without touching the underlying model (and vice versa)?

Basically, I have wasted way too many hours of my career pushing pixels around and I just couldn't take it anymore!

Flatland is a model diagram non-editor written by me Leon Starr that generates beautiful PDFs (and other output formats) based on two very human-readable input text files. The model file specifies model semantics (state transitions, generalizations, classes etc) while the layout file specifies (node placement and alignment, connector anchors) and lightly refers to some elements in the model file. You can think of the layout file as a "style sheet" for your models. Some benefits:

Follow me on BlueSky and LinkedIn for updates.

Models to Code

In the meantime, if you are curious about the whole MBSE thing that this tool supports, take a look at our book. Also, various resources at the Model Integration website.

Installation

Notes here are for those familiar with python installation procedures. I will write a more detailed set of procedures for those who are not in a later release.

You should also ensure that you have Python 3.12+ installed. A virtual environment is highly recommended.

You can install the Flatland Model Diagram Editor from PyPI:

$ pip install mi-flatland

Flatland is supported on Python 3.12 and above

How to use

At this point I refer you to the wiki on this site for all of the user documentation. Enjoy (and feel free to contact me if you have any questions.

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

mi_flatland-2.0.0.tar.gz (81.4 kB view details)

Uploaded Source

Built Distribution

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

mi_flatland-2.0.0-py3-none-any.whl (108.3 kB view details)

Uploaded Python 3

File details

Details for the file mi_flatland-2.0.0.tar.gz.

File metadata

  • Download URL: mi_flatland-2.0.0.tar.gz
  • Upload date:
  • Size: 81.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for mi_flatland-2.0.0.tar.gz
Algorithm Hash digest
SHA256 2bc139772d8aef56ae3e42da281170c90a23ca1d9f9a3fd2cefba950f1d30090
MD5 85b67d2d2d260db9be0fe4c1c0b35d58
BLAKE2b-256 4bea066137682f56afda7c25df729a739d88eaf4d4291d9bf0f27344122e924f

See more details on using hashes here.

File details

Details for the file mi_flatland-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: mi_flatland-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 108.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for mi_flatland-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 893bfd42fa0556c6189f1afbfba55ba23f50ca43018e0b8a4a4eb60fc8d1006f
MD5 f0f90f2c3ddcbae960181b10db83d185
BLAKE2b-256 da217d6430532edbb8cd828a682a783b628bd94cba632c81848a4d6fcab09c0f

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