PyStarch Interactive Demo

PyStarch is an open source lint-style command line tool for static type checking of Python programs. It also checks that programs conform to certain constraints that are intended to encourage a more functional programming style.

You can think of PyStarch as defining a sub-language of Python that lies halfway between Python and Haskell, combining the simple syntax of Python with the safety and cleanliness of Haskell. Although PyStarch provides warnings to encourage you to use this sub-language (such as warning when variables are reassigned), you can choose to ignore any warnings you want since your code still runs in the standard Python interpreter.

The box on the left below shows some sample Python code and the box on the right shows the corresponding PyStarch warnings. You can edit the code on the left and the box on the right will be automatically updated.