MongoDB Python Hackpack runs on Python Version 3.8 and higher. Please ensure you have Python installed.
This project is built using Poetry, a Python package and dependency manager. Please ensure you have Poetry installed using the official installation guide. You can also install Poetry via the following command:
# Linux, MacOS, Windows (WSL)
curl -sSL https://install.python-poetry.org | python3 -This project uses PyMongo, a Python distribution containing tools for working with MongoDB.
The following environment variables are required and must be stored in an .env file:
MONGODB_URI=The MONGODB_URI env variable is a MongoDB connection string.
# Install dependencies
poetry install
# Add dependency
poetry add <dependency>
# Remove dependency
poetry remove <dependency>poetry run app# Rewrite code recursively with proper formatting
poetry run yapf -ir app
# Show formatting differences recursively
poetry run yapf -dr apppoetry run pylint apppoetry build