mongodbm
Introduction
mongodbm is a Python package to use a MongoDB server as a python dbm-style key/value database. It implements all of the MutableMapping methods in Python and is implemented in MongoDB using the GridFS spec to allow for values of any size. Keys must be strings (as the filename in GridFS) and values can be set as either bytes or file-like objects. Values returned by mongodbm are always file-like objects (specifically the GridOut object from pymongo).
This package was primarily made to be a fast and persistent key/value store that can have multiple readers and writers across multiple Python instances. MongoDB handles the race conditions so that I don’t have to. The initial primary use-case is as a local cache for web apps where the source data are stored in remote S3 systems.
A MongoDB server must be running and accessible for mongodbm to work.
If someone is brave enough to try this out, take a look at the doc strings of the mongodbm.open function to find out what you need to do. It’s pretty straightforward.
Installation
Install via pip:
pip install mongodbm
Or conda:
conda install -c mullenkamp mongodbm
I’ll probably put it on conda-forge once I feel like it’s up to an appropriate standard…
TODO
More documentation and I need to write a lot more tests for the functionality.
Metadata
Release files for mongodbm 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mongodbm-0.0.3.tar.gz | 11.2 kB | Without provenance | Details for mongodbm-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mongodbm-0.0.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for mongodbm-0.0.3-py2.py3-none-any.whl |
Total release size: 20.9 kB
Release files / mongodbm-0.0.3.tar.gz
| Download URL | mongodbm-0.0.3.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
76c4d3210048b712c0ba0ebda522a9126548b58e18ec44c62d7965a520cf47ba
|
|
BLAKE2b-256 checksum How to use checksums |
250c0b5da8745d1296bc16319f5f511be1a56a56e174debb2cd426d07392b568
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.15
|
Release files / mongodbm-0.0.3-py2.py3-none-any.whl
| Download URL | mongodbm-0.0.3-py2.py3-none-any.whl |
|---|---|
| Size | 9.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b497530c2fb89949188b1d45ba5443a8c23681a196f9fe1a32390029a328cbc1
|
|
BLAKE2b-256 checksum How to use checksums |
aa41c314cd8774f6135c4f52b7a7951929bf50b4fec1d8962a47b33cef21d42a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.8.2 readme-renderer/27.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.4.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.15
|
Security for mongodbm 0.0.3
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.