A Python wrapper for pymongo with support for SSH tunneling and LDAP authentication.
- Simple MongoDB connection interface
- SSH tunnel support
- LDAP authentication
- GridFS file operations
- Comprehensive type hints
pip install dbComm
from dbComm import Mongo
# Connect to database
db = Mongo(host="localhost")
db.setDB("mydatabase")
# Create record
record_id = db.newRecord("mycollection", field1="value1", field2="value2")
# Retrieve record
record = db.getRecord("mycollection", record_id)
For full documentation, visit docs/index.md
see LICENSE