Skip to main content

Matrix: update, read, delete. A data store with a sorted, key:value store model

Project description

Murd

Python Management of Matrix-like Key-Value store memories across disparate backends. Murd is the lowest level, pure python implementation backed by JSON. See murdaws for AWS implementations.

Data Model

It is best to think of a Murd as a simple key-value store, but with a mysterious dark past utterly at odds with its outwardly waify-bookishness. Much like a goodly priest knowing too much about guns and the criminal underworld, Murds allow a few tricks for segmenting data and searching within those segments. Dirty tricks no JSON object was meant know.

Murd can be a footgun. But used with a bit of cleverness for its keys and how to search them, Murds allow a network of distributed data stores backed by a variety of technologies including JSON, SQLite^, DynamoDB, and S3^.

^ Not yet implemented

Instantiate

my_murd = Murd()

Open from file

my_murd = Murd("/home/me/my_murd.json")

Update

murd.update([{"GROUP": "TEST": "SORT": "0": "DATA": 42}])

Read

murd.read(group='TEST')

Delete

murd.update([{"GROUP": "TEST": "SORT": "0": "DATA": 42}])

Save to file

my_murd.write_murd("/home/me/my_murd.json")

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

murd-0.0.5.8.tar.gz (4.0 kB view hashes)

Uploaded source

Built Distribution

murd-0.0.5.8-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page