Skip to main content

Methods that simplify MongoDB collection reading and writing.

Project description

mongodb-helper

Methods that simplify MongoDB collection reading and writing.

Method Description
get_document Reads a document with the given id
update_document Updates a document with the given id
insert_document Creates a new document with the given id and data
delete_document Deletes a document with the given id

Example:

from mongodb_helper import Helper
from pymongo import MongoClient

URI = "CLUSTER URI"

cluster = MongoClient(URI)
db = cluster["database name"]
collection = db["collection name"]

helper = Helper("_id", collection)

document = helper.get_document(1122334455667788)

Project details


Release history Release notifications | RSS feed

This version

0.13

Download files

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

Source Distribution

mongodb-helper-0.13.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

mongodb_helper-0.13-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file mongodb-helper-0.13.tar.gz.

File metadata

  • Download URL: mongodb-helper-0.13.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for mongodb-helper-0.13.tar.gz
Algorithm Hash digest
SHA256 8a8355c96aaf6b7fa52ca59e9ea7d9c433a9aee6b6e7c7ff8de60e28d0ff6dcf
MD5 d36e0da59d6f96fd7166ff512c95756e
BLAKE2b-256 8bad68980a5208ec2c05a7a64793ad350dee947637495dd8c48da44b44701040

See more details on using hashes here.

File details

Details for the file mongodb_helper-0.13-py3-none-any.whl.

File metadata

  • Download URL: mongodb_helper-0.13-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6

File hashes

Hashes for mongodb_helper-0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 e892ce63c51d019f38e47b9622d8ec7c74177ddfb9290aef3e39c3c16c496a7b
MD5 6b7459d833826f8315f9481e5ea9e165
BLAKE2b-256 179b281511764923893ec1c9de712e4a9bfd22528b92bd51ac14542362081625

See more details on using hashes here.

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