Skip to main content

Module for communicating with a (MongoDB) database

Project description

dbComm

PyPi

About

dbComm is a module for integrating a Python codebase with MongoDB using the PyMongo library. The methods contained are used to connect to a Mongo database and push/pull data.

Installing

The easiest method of installation is through using Pip.
pip install -U git+https://github.com/LLNL/dbComm.git

If you prefer, you can clone the repo using:
git clone https://github.com/LLNL/dbComm.git

Usage

To use dbComm, create an instance of the class. This will attempt to connect to the database. Upon successful connection, any of the methods can be used in the class to interact with the database.

import dbComm
db = dbComm.Mongo('myServer')
print(myServer.getDBs())

Troubleshooting

If when running the pip install, you get an error like AttributeError: module 'enum' has no attribute 'IntFlag' (32-bit Python),
run: pip uninstall enum34

Contributing

dbComm is an open source project and constantly evolving! We welcome contributions via pull requests as well as questions, feature requests, or bug reports via issues. Contact our team at caviness2@llnl.gov with any questions.

If you are not a developer at LLNL, you won't have permission to push new branches to the repository. First, you should create a fork. This will create your copy of the ATS repository and ensure you can push your changes up to GitHub and create PRs.

License

LLNL-CODE-845190

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.2.3.tar.gz (6.4 kB view hashes)

Uploaded Source

Built Distribution

dbComm-0.2.3-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

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