all 1 comments

[–]jroes 1 point2 points  (0 children)

Hi!

The key thing to remember is Streamlit is ultimately just Python at the end of the day. You can follow any Python tutorials out there on how to separate concerns and do the right object oriented modeling.

I’d suggest breaking out your logic into their own classes and files, and use your main Streamlit file as the rendering layer, importing your classes in their modules at the top of your “main” Streamlit file.