Skip to main content

Model text file + layout text file -> beautiful diagram

Project description

Flatland Model Diagram (non) Editor

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:

WARNING: I am still in the early days of releasing to the greater public so it's going to be a few weeks/months before this tool is ready for the outside world. We are currently using it at the Toyota Research Institute for our work modeling the driving environment for autonomous vehicles. So this tool is in production and improving daily. Nonetheless, I don't recommend wasting your time downloading just yet unless you just want to play with it and look at the code and documentation. Follow me on twitter or 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.

Flatland currently uses the multi-platform cairo graphics library to do all of the drawing. Ideally, you should ensure that you have cairo installed before installing Flatland. If you are on Mac OS X, you can use homebrew to install it easily. (It worked fine for me, anyway)

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

You can install the Flatland Model Diagram Editor from PyPI:

$ pip install flatland-model-diagram-editor

Flatland is supported on Python 3.9 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


Release history Release notifications | RSS feed

This version

1.5.0

Download files

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

Source Distribution

flatland-model-diagram-editor-1.5.0.tar.gz (13.8 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file flatland-model-diagram-editor-1.5.0.tar.gz.

File metadata

  • Download URL: flatland-model-diagram-editor-1.5.0.tar.gz
  • Upload date:
  • Size: 13.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for flatland-model-diagram-editor-1.5.0.tar.gz
Algorithm Hash digest
SHA256 728da273e206af87ae6b81b4b8aed01b32acbca7d7adcee4a131b122452fa8e6
MD5 7a587e6178e90e024fb842bdd628f1bb
BLAKE2b-256 75cea540f0a5dbc6e30896ef3babeb42e3106402f61ab713b75d807b49a3cf77

See more details on using hashes here.

File details

Details for the file flatland_model_diagram_editor-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: flatland_model_diagram_editor-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 14.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.0

File hashes

Hashes for flatland_model_diagram_editor-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61a6d0dbeb47fe3a3758f7c3b5f401f8ea7c8f445a88a9535cc28fe0c5334ad6
MD5 319512485abdd7122afacf9b10bc0fdf
BLAKE2b-256 9a8d65b9813207ddff0eab99aa174ad03153025fd81be0b7f8fe93ccb09a9dc2

See more details on using hashes here.

Supported by

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