Skip to main content

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)

Metadata

Release files for mongodb-helper 0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongodb-helper 0.13
File Size Uploaded Provenance Actions
mongodb-helper-0.13.tar.gz 3.2 kB Without provenance Details for mongodb-helper-0.13.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mongodb-helper 0.13
File Interpreter ABI Platform Actions
mongodb_helper-0.13-py3-none-any.whl Python 3 none any Details for mongodb_helper-0.13-py3-none-any.whl

Total release size: 6.8 kB

Release files / mongodb-helper-0.13.tar.gz

Download URL mongodb-helper-0.13.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8a8355c96aaf6b7fa52ca59e9ea7d9c433a9aee6b6e7c7ff8de60e28d0ff6dcf
BLAKE2b-256 checksum
How to use checksums
8bad68980a5208ec2c05a7a64793ad350dee947637495dd8c48da44b44701040
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / mongodb_helper-0.13-py3-none-any.whl

Download URL mongodb_helper-0.13-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e892ce63c51d019f38e47b9622d8ec7c74177ddfb9290aef3e39c3c16c496a7b
BLAKE2b-256 checksum
How to use checksums
179b281511764923893ec1c9de712e4a9bfd22528b92bd51ac14542362081625
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for mongodb-helper 0.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.13 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page