Connect data sources

Your app probably connects to some data source, and it's important to make sure that connection is secure. That data might just be a csv that you have in your GitHub repo, but in many cases it'll be a private data source you connect with via API, on a cloud service, or maybe in your company's VPN.

Streamlit has one primary way of securely connecting to private data:

  • Secrets management: securely store secrets like API keys and TOML files that you can then access as environment variables in your app.

We also have a series of guides on how to connect to:

screenshot
AWS S3
screenshot
BigQuery
screenshot
Deta Base
screenshot
Firestore (blog)
screenshot
Google Cloud Storage
screenshot
Microsoft SQL Server
screenshot
MongoDB
screenshot
MySQL
screenshot
PostgreSQL
screenshot
Private Google Sheet
screenshot
Public Google Sheet
screenshot
Snowflake
screenshot
Supabase
screenshot
Tableau
screenshot
TiDB
screenshot
TigerGraph
push_pin

Note

Trouble connecting to data? Need a different way to securely connect? Reach out on our Community forum to chat through options!

Was this page helpful?

editSuggest edits
forum

Still have questions?

Our forums are full of helpful information and Streamlit experts.