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 Python 3

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