Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

JSONStore is a lightweight database for JSON documents exposed through HTTP.

Project description

A schema-free database for JSON documents, exposed through a REST API, with searching implemented using a flexible matching algorithm.

A quick start:

$ pip install jsonstore
$ jsonstore
 * Running on

Creating a document:

$ curl -v -d '{"foo":"bar","baz":{"count":42}}'
< HTTP/1.0 201 Created
< Location:
< etag: "348f16ee0c0856d853117bde8413a4270d1d3487"
    "foo": "bar",
    "baz": {
        "count": 42
    "__id__": "72dcf1ee-8efd-4d7f-8ca1-2eda2bf85099",
    "__updated__": "2012-05-09T20:33:36.928075+00:00"

Searching the store:

$ curl -g '{"baz":{"count":"GreaterThan(40)"}}'
        "foo": "bar",
        "baz": {
            "count": 42
        "__id__": "72dcf1ee-8efd-4d7f-8ca1-2eda2bf85099",
        "__updated__": "2012-05-09T20:33:36.928075+00:00"

It also has a Python API. The above code would be done like this:

>>> from jsonstore.client import EntryManager
>>> from jsonstore.operators import GreaterThan

>>> em = EntryManager('')
>>> em.create(foo="bar", "baz"={"count": 42})
>>> results ={"count": GreaterThan(40)})

Or like this, just for fun:

>>> from jsonstore.dsl import Store

>>> store = Store('')
>>> { "foo": "bar", "baz": { "count": 42 } } >> store
>>> results = store | { "baz": { "count": GreaterThan(40) } }

Please see the website for more examples.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for jsonstore, version 1.3.1
Filename, size File type Python version Upload date Hashes
Filename, size jsonstore-1.3.1-py2.7.egg (35.7 kB) File type Egg Python version 2.7 Upload date Hashes View
Filename, size jsonstore-1.3.1.tar.gz (13.4 kB) File type Source Python version None Upload date Hashes View

Supported by

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