Skip to main content

Module for communicating with a (MongoDB) database

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dbcomm-0.4.1.tar.gz (6.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dbcomm-0.4.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file dbcomm-0.4.1.tar.gz.

File metadata

  • Download URL: dbcomm-0.4.1.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbcomm-0.4.1.tar.gz
Algorithm Hash digest
SHA256 855b9b68583d969f6925e562b3aad0297ba45c1741d25f592c8f956959ff99e4
MD5 a90f2f13428382bbac3bc47d14f6ef8b
BLAKE2b-256 4d2cc2e0066d9173ecb48dc5169857717d92ff257301a673f58b0455a3dbf89a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbcomm-0.4.1.tar.gz:

Publisher: release.yml on LLNL/dbComm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dbcomm-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: dbcomm-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dbcomm-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12d49562ddc990c1469fc71e2d4bfdee27823d2518cc65cd9823fd5ee0d909af
MD5 69f181c4401860d738abdea0a209650e
BLAKE2b-256 ea6da46bbcc1cd489da8990a9d7e1f5d8433f4485553738f38e60a010f5c79ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for dbcomm-0.4.1-py3-none-any.whl:

Publisher: release.yml on LLNL/dbComm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page