Session State Multi-page App MWE

Hey everyone,

I was wondering if there is a minimal working example of a multi-page app that leverages the latest session state additions. I want to avoid making something terribly sub-optimal.

To provide some context, I am trying to build a streamlit app with multiple tools, each placed on its own page - some of the data will be of use to more than one of said pages - and deploy it on streamlit sharing.

More specifically, I would also like to know whether a way exists to avoid clutter in streamlit_app.py, e.g. by coding each tool in its own file and including all files in the main one.

Thank you for your time!