Design patterns and OOPS concept in streamlit?

We are developing a project using Python Streamlit, utilizing basic Streamlit commands and Python functions. In certain areas like the header, footer, and buttons, we are using markdown for styling. Our application consists of five pages.

Our managers are asking whether implementing design patterns (such as Singleton or Factory) or OOP concepts (like classes and objects) would be beneficial for updating the entire project folder to enhance reusability and scalability.

Considering the nature of Python Streamlit, would incorporating these concepts be advisable?

I’m not sure about making a sweeping statement to apply broadly to any and all Streamlit apps; it depends on what’s in your app. However, one thing to note is that Streamlit apps are meant to be run as scripts. For example, it is not the preferred pattern to use if __name__ == "__main__" in your app’s entrypoint file.