Skip to main content

A python key-value MongoDB database

Project description

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.

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.

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

mongodbm-0.0.2.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

mongodbm-0.0.2-py2.py3-none-any.whl (9.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file mongodbm-0.0.2.tar.gz.

File metadata

  • Download URL: mongodbm-0.0.2.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for mongodbm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c2ea8d6fd8f75c2e07ead2926afe665360cfa0ffc99253602c435acb804ccc27
MD5 f7e63e1fa7dfcc335c84357237b59841
BLAKE2b-256 ebd66f9acb53c9372a63b5d6761b704a7d159e3daab709d32252128894e1fa3d

See more details on using hashes here.

File details

Details for the file mongodbm-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: mongodbm-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for mongodbm-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3b3981bb57ea8c0e4e3ae15d36674e019b8a63c266c79b0e265e3b51ab65805b
MD5 ff3f5040afc69eb331efd5898d8cd4d3
BLAKE2b-256 0953436abe576f562a328c2d3141d5473730a1850ef470a1a6ddf9cbaa2f0c66

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page