Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - 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 http://127.0.0.1:31415/

Creating a document:

$ curl -v http://127.0.0.1:31415/ -d '{"foo":"bar","baz":{"count":42}}'
< HTTP/1.0 201 Created
< Location: http://127.0.0.1:31415/72dcf1ee-8efd-4d7f-8ca1-2eda2bf85099
< 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 'http://127.0.0.1:31415/{"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('http://127.0.0.1:31415/')
>>> em.create(foo="bar", "baz"={"count": 42})
>>> results = em.search(baz={"count": GreaterThan(40)})

Or like this, just for fun:

>>> from jsonstore.dsl import Store

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

Please see the website for more examples.

Release History

Release History

This version
History Node

1.3.1

History Node

1.3

History Node

1.2.3

History Node

1.2.1

History Node

1.2

History Node

1.1.6

History Node

1.1.5

History Node

1.1.4

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.2

History Node

1.0.1

History Node

1.0

History Node

0.3

History Node

0.3a7

History Node

0.3a6

History Node

0.3a5

History Node

0.3a4

History Node

0.3a3

History Node

0.3a2

History Node

0.3a1

History Node

0.2.1

History Node

0.2

History Node

0.1.2

History Node

0.1.1

History Node

0.1dev

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
jsonstore-1.3.1-py2.7.egg (35.7 kB) Copy SHA256 Checksum SHA256 2.7 Egg Mar 1, 2013
jsonstore-1.3.1.tar.gz (13.4 kB) Copy SHA256 Checksum SHA256 Source Mar 1, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting