Module for communicating with a (MongoDB) database
Project description
dbComm
- Author: Pigeon Caviness (caviness2@llnl.gov)
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
Built Distribution
File details
Details for the file dbcomm-0.3.1.tar.gz
.
File metadata
- Download URL: dbcomm-0.3.1.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c09c541fec122d3b582e2b36ddb255ceca5efcc1f8669db732d626a26dc7d31 |
|
MD5 | fa54cbb439d9162e091477581deb7263 |
|
BLAKE2b-256 | 12dc59c5928a672c8849264f561be83f0ff65b98c49e03274a32f73434f8f4f9 |
File details
Details for the file dbComm-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: dbComm-0.3.1-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ffde1e865b62d2f76c0c125e2e765b88efe92ef1609e2c6c7c746a3c25376d8 |
|
MD5 | 2ad392af1bd2539fa57edb0d62a47e65 |
|
BLAKE2b-256 | 51b7e8e13eb6258db83efb97b6539c659b0f862c2947534b94d72179ffbbbfb6 |