Skip to content

mongodb-developer/python-quickstart-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Nov 30, 2020
0d7c947 · Nov 30, 2020

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MongoDB Python Quick Start Code

This repository contains sample code from the MongoDB Python Quick Start series.

There are currently two posts in the series:

How To Run It

The source code is all in the src directory. It is written for Python 3.6 and later.

Full instructions on how to set up your Python environment for this code can be found in the first blog post in the series, Basic MongoDB Operations in Python.

To install the dependencies, create a virtualenv using your favourite tool, such as venv or virtualenv, activate it, and then run:

python3 -m pip install -r requirements.txt

You will also want to set the environment variable MONGODB_URI to your MongoDB Atlas cluster, either on the command-line, or in a .env file.

Once you've installed the dependencies and set MONGODB_URI you can run the python scripts directly with something like:

python3 src/01_crud_operations.py

If you have questions or feedback, please let us know at the MongoDB Community Forums!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages