File size: 274 Bytes
505405b |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
import streamlit as st
from pymongo import MongoClient
import os
uri = os.environ["MONGO_CONNECTION_STRING"]
client = MongoClient(uri, tlsCertificateKeyFile="database/cert.pem")
db = client["testing"]
col = db["new"]
xyz = {"message" : "it raining" }
col.insert_one(xyz)
|