Use this tag in questions related to the Official Mongodb Python Document Mapper (pymodm)
Official project released by the mongodb python team.
Pymodm is actively maintained on github and has an acceptable documentation
It can be installed using pip:
pip install pymodm
Basic example usage:
from pymodm import MongoModel, fields, connect
connect(mongo_uri)
class Release(MongoModel):
# _id is generated by the model
name = fields.CharField(required=True)
year = fields.IntegerField(required=True)
tracks = fields.ListField( default=[])