This repository holds scripts that allow you to interact with mongo by the help of python.

View on GitHub


This repository helps you get started with the pymongo module of python. Also teaches you to configure and install mongodb on ubuntu.

Install mongodb.

apt-get update && apt-get upgrade && apt-get install mongodb

Configure mongo config.

Got to

vi /etc/mongodb.conf

Replace “bind_ip =” with “bind_ip =” and uncomment the line “port = 27017” Finally restart the mongodb.

/etc/init.d/mongodb restart

Install python module.

pip install pymongo