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) | |