Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/agoose77/pysam

State-Action-Model demo in Python
https://github.com/agoose77/pysam

reactive-front-end reactiveui sam state-action-model ui-pattern web

Last synced: 8 days ago
JSON representation

State-Action-Model demo in Python

Awesome Lists containing this project

README

        

# pysam
State-Action-Model demo in Python. Based upon http://sam.js.org/

## server_side
A server side demonstration of SAM, where the client provides the actions (those which are not used by the next-action-predicate (nap)), and the server provides the View, Model, and State.
Websockets are used to communicate between the server and client, and to maintain the global state (model) for each client. View updates are returned to the client, and rendered to a `div`.

Run `python3 app.py`, and navigate to http://localhost:5000/ to try the demo.