Skip to content

Jupyter notebooks to demonstrate accessing mongodb with Python

License

Notifications You must be signed in to change notification settings

rambasnet/MongoPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MongoPython

Jupyter notebooks demonstrating accessing MongoDB with Python

MongoDB

Install MongoDB server in Ubuntu 18.04

$ sudo apt install mongodb

Install MongoDB client in Ubuntu

$ sudo apt install mongodb-clients

Run mongo client shell

$ mongo

MongoDB Database Commands

> db
> show dbs
> use <database> 
    - database can be new or existing
> use students
> show dbs
    - will not list database until some records are inserted into a collection
use collection to insert document
> db.AdvPy.insertOne({fname: "John"})
> db.AdvPy.insertMany([{fname: "Jake"}, {fname: "Jen"}])

About

Jupyter notebooks to demonstrate accessing mongodb with Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published