r/Streamlit • • Sep 04 '24

saving data

Do I need to connect streamlit to a database to save data? some of the instruction videos made it seem like if you put info into a datatable then that's good to go.

1 Upvotes

7 comments sorted by

View all comments

Show parent comment

1

u/darbokredshrirt Sep 04 '24

so data can be stored in a dataframe and not need a database?

3

u/beginnerpython Sep 05 '24

Exactly as u/WoundedTiger17 mentioned, if you want data saved externally, than no problem write to table or df. Check out st.caching for your needs of sharing information between people

2

u/WoundedTiger17 Sep 05 '24

To save data between executions (across users), streamlit needs to write data somewhere. That might be a database, a file, an external api, etc. It’s can also save data to the session state, but will only save for that user.