Installation

pyfcstm is currently hosted on PyPI. It requires Python >= 3.7 and is tested on CPython 3.7 through 3.14.

You can simply install pyfcstm from PyPI with the following command:

pip install pyfcstm

You can also install with the newest version through GitHub:

pip install -U git+https://github.com/hansbug/pyfcstm@main

You can check your installation by the following python script:

1from pyfcstm.config.meta import __TITLE__, __AUTHOR__, __VERSION__, __DESCRIPTION__
2
3if __name__ == '__main__':
4    print(__TITLE__, __VERSION__)
5    print('Developed and maintained by', __AUTHOR__)
6    print(__DESCRIPTION__)

The output should be like below, which means your installation is successful.

1pyfcstm 0.3.0
2Developed and maintained by HansBug
3A Python framework for parsing finite state machine DSL and generating executable code in multiple target languages.

You can check with CLI command as well

1pyfcstm -v
1Pyfcstm, version 0.3.0.
2Developed by HansBug (hansbug@buaa.edu.cn).

pyfcstm is still under development, you can also check out the documents in stable version through https://hansbug.github.io/pyfcstm/main/index.html.