Skip to main content

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)

Source distribution for mongodbm 0.0.3
File Size Uploaded
mongodbm-0.0.3.tar.gz 11.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mongodbm 0.0.3
File Interpreter ABI Platform
mongodbm-0.0.3-py2.py3-none-any.whl Python 3, Python 2 none any Details

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

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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