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 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.

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.1.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

mongodbm-0.0.1-py2.py3-none-any.whl (9.4 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: mongodbm-0.0.1.tar.gz
  • Upload date:
  • Size: 11.0 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.1.tar.gz
Algorithm Hash digest
SHA256 cc01f54ee36e4bf99fc2cf99173dd46514df39e12ea890a48f696d061b7ddd2f
MD5 cb8eb16468eb285938f0e535d3490be2
BLAKE2b-256 665661a411f872f888e856c70133f8c7cd2b8a2393bdfb8135be84f9ae846b22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mongodbm-0.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 9.4 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 11f9aeba598b63242afc6e65eb37d5385543f65e0886352fcf7e98371dd7c763
MD5 f3d6bcbc0b6afd1b3e462ab272da4125
BLAKE2b-256 4a54a9f2fc347d125849dbdff03ef81abb2b4a35e31dfc143816d5b2cb4d6156

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