...
For details about how is the database hosted on BioHPC, refer to "BioHPC Database" section of Configuration Notes.
MongoDB Atlas
Introduction
...
dnspython 2.0
Joining the project
First, join the project on MongoDB Atlas. To do so, ask someone already in the project to invite you using your Cornell email address.Once you joined the project, go to https://account.mongodb.com/account/login and login using your email addressthe email diapertestemail@gmail.com, whose password can be found in the "Login secrets/Login secrets.boxnote" file of the box folder mentioned in ❌ Confidential files (deprecated). You should see a project dashboard similar to the one below.
Connecting to the database
...
If you are connecting using Python (or other programming languages), choose "Connect your application" option and select your language and the version of your connection library (PyMongo for Python).
Copy the connection string and replace <password> with "uV0spJEn3Q9cbUw6" and <dbname> "myFirstDatabase" with the target database's name. Then you can establish connection in your code using the connection string.
...
| Code Block | ||
|---|---|---|
| ||
from pymongo import MongoClient
client = MongoClient('mongodb+srv://admin:uV0spJEn3Q9cbUw6@cluster0.etmbngtgrs.mongodb.net/testmyFirstDatabase?retryWrites=true&w=majority')
db = client.test
db.initial_insert.insert_one({'your field':'your value'}) |
...


