Skip to content

LLNL/dbComm

Repository files navigation

dbComm

A Python wrapper for pymongo with support for SSH tunneling and LDAP authentication.

Features

  • Simple MongoDB connection interface
  • SSH tunnel support
  • LDAP authentication
  • GridFS file operations
  • Comprehensive type hints

Installation

pip install dbComm

Quick Usage

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)

Documentation

For full documentation, visit docs/index.md

License

see LICENSE

About

dbComm is a module for integrating a Python codebase with MongoDB using the PyMongo library

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Languages