An introduction to MongoDB with PyMongo

MongoDB is a document based database with a dynamic data schema. The JavaScript Object Notation (JSON) that it supports is a natural fit for working with objects in modern programming languages like JavaScript, Python and others. This provides an alternative to more traditional Relational Database Management Systems (RDBMS) such as SQL. MongoDB is an example of a NoSQL databases. These databases often use collections of documents instead of the tables used in RDBMS. These databases support dynamic database schemas making them responsive to changes in the structure of data.

This short primer gives some examples of using MongoDB with Python using the **pymongo **library. This concludes by introducing **mongoengine **for working with Mongo databases in modern software projects as well as how to convert them into dataframe objects for further analysis. It is assumed that readers are comfortable downloading and setting up MongoDB and have some basic experience of using Python.

#database #pymongo #python #mongodb #nosql #using mongo databases in python

Using Mongo Databases in Python
1.65 GEEK