streamlit-test / app.py
IsaacKerson
set up mongo connection
e153455 unverified
raw
history blame
383 Bytes
import streamlit as st
import pymongo
cluster = "mongodb+srv://m001-student:test-run@sandbox.zqzg8.mongodb.net/sample_airbnb?retryWrites=true&w=majority"
client = pymongo.MongoClient(cluster, server_api=ServerApi('1'))
#db = client.test
st.title("With Pymongo")
#x = st.slider('Select a value')
#st.write(x, 'squared is', x * x)
st.write(client.list_database_names())