Maintaining Persistent State in a Python Web Interface

Overview:
I need a lightweight Python web UI that initializes data only once and reuses it between requests. How can I maintain state without spawning a new process per call?

hey try flask with gunicorn preloding; i’ve used cachin with a global state in threads and works fine on my set-up. consider an external datastore if it gets tricky. give it a try!