Add google-cloud-bigquery to your requirements file
Add the google-cloud-bigquery package to your requirements.txt file, preferably pinning its version (replace x.x.x with the version want installed):
```bash
requirements.txt
google-cloud-bigquery==x.x.x
```
Write your Streamlit app
Copy the code below to your Streamlit app and run it. Make sure to adapt the query if you don't use the sample table.
```python
streamlit_app.py
import streamlit as st
from google.oauth2 import service_account
from google.cloud import bigquery
Create API client.
credentials = service_account.Credentials.from_service_account_info(
    st.secrets["gcp_service_account"]
)
client = bigquery.Client(credentials=credentials)
Perform query.
Uses st.cache to only rerun when the query changes or after 10 min.
@st.cache(ttl=600)
