Skip to main content

A CLI tool for creating an FSM diagram.

Project description

Texas Tech Computer Science - Whitacre College of Engineering

FSMD

Finite State Machine Diagram Tool

Python Version >= 3.7

A python command line tool for creating finite state machine diagrams from a file. Make deterministic and non-deterministic automata easily!

Made by Jaxcksn

Features

Current

  • Allows easy creation of an FSM diagram anywhere from a YAML file
  • Quickly create non-deterministic automata with epsilon transition support.
  • Included installer for Graphviz for Windows and MacOS.
  • Easy to install and use
  • Diagrams are automatically optimized to be the ideal size.

Planned

  • Allow changing output format
  • Improve input file capabilities
  • Add CLI options for sizing output
  • Add more rigorous input file checking
  • Linux support for installer
  • Improve reliability of installer

Installation

Pre-requisites

To use FSMD, Python 3.7 or greater is required to be installed. You must also have pip as well.

Install FSMD

To install FSMD you can run:

pip install FSMD

If you want to run the project directly, you can run the main.py file in the source folder, and Typer should take care of the rest.

Install Graphviz

The Graphviz library is required for FSMD to work properly, there are a few two ways (unless you are on Linux) to do this.

Automatic Install (Windows & MacOS Only)

FSMD includes an automatic installer for Graphviz. Each platform has different steps.

The automatic installer is experimental and not guaranteed to work, it's recommended to install Graphviz yourself if the automatic installer does not work for you.


Windows

Usage

To install on Windows, run the following command:

FSMD install

Note: The windows installer does not add the Graphviz executables to your system path. It instead installs to a location in %LOCALAPPDATA, which is added to the PATH only when running FSMD. If you don't know what this means, don't worry about it.


MacOS

Requirements

Automatic installation on MacOS requires Homebrew to be installed. You can install it by following the steps on this page.

Usage

Once you meet all the requirements, run the following command:

FSMD install

Manual Install (All Platforms)

Visit the Graphviz Download Page and follow the steps to install Graphviz for your platform.

Once downloaded and installed, make sure Graphviz is in your path by running:

dot --version

If the command runs with no issues, then you are ready to start using FSMD.

Using FSMD

Once you have the tool installed, you will need to create a file for FSMD to create a diagram of. Please see the FSM File Documentation for details.

To create the diagram, run the following command:

FSMD create FORMAT INPUT_FILE OUTPUT_FOLDER

Where FORMAT is png or svg To view all the options and arguments for the create command you can run:

FSMD create --help

Support

I am an active college student, so I stay pretty busy, but feel free to open an issue if you run into any problems, and I will look into it as soon as I can.

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

FSMD-1.1.0.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

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

FSMD-1.1.0-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file FSMD-1.1.0.tar.gz.

File metadata

  • Download URL: FSMD-1.1.0.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for FSMD-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c1b01e138c48441db38cd6970d8197b39acf9b7a226b9762ae9a774b14378442
MD5 d4136aa230d39f8d6d22ed2cc5e7af66
BLAKE2b-256 68ec10d386a176d07ce3e2711de0161abc8156cd7b5bf87cd5e7f6f3f2690450

See more details on using hashes here.

File details

Details for the file FSMD-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: FSMD-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for FSMD-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34248f6d5360455c0f8e06f6bc7f3f4a91dee48d32631b84abd3cb7c56ae9bb3
MD5 e0d47d1eb744602e1348ed01ad034fa3
BLAKE2b-256 7a74a410db1f0682f64af031e967819af8b8c42cf1db2b8fe82aa330ae612792

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