Headwaters Entrepreneurs

mongo_objects: Accessing MongoDB Sub-Documents Through Proxy Objects

May 2024: mongo_objects has been published!
Check out the following resouces:
PyPI Module Page
Source Code on GitHub
Documentation on Read The Docs

Dec 2023 PyChina Chengdu Presentation

No-SQL databases like MongoDB make it easy to store application data in dictionary-like document objects.

Sub-documents are simply child lists or dictionaries saved within a larger parent document. For example,

This talk discusses the development of mongo_objects, a Python module that presents MongoDB documents as custom UserDict subclasses, thereby keeping data and code together.

In addition, mongo_objects simplifies access to subdocuments by presenting them as dictionary-like proxy classes that retain the connection to the original parent document.

Resources