Skip to main content

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})
>>> em.search(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.

Source Distribution

jsonstore-1.2.tar.gz (11.6 kB view details)

Uploaded Source

Built Distribution

jsonstore-1.2-py2.7.egg (87.3 kB view details)

Uploaded Source

File details

Details for the file jsonstore-1.2.tar.gz.

File metadata

  • Download URL: jsonstore-1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jsonstore-1.2.tar.gz
Algorithm Hash digest
SHA256 18a4b0beca3c9f5f38479197d1434b523f519dd3d85c66cdbdb9a3224f7d28f4
MD5 d693504b8a319020fd31bcb6e05a1a98
BLAKE2b-256 0173d17392038cd29ef82aaaf5d0117c4807150e76d3ae775b66e859057f4204

See more details on using hashes here.

Provenance

File details

Details for the file jsonstore-1.2-py2.7.egg.

File metadata

  • Download URL: jsonstore-1.2-py2.7.egg
  • Upload date:
  • Size: 87.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for jsonstore-1.2-py2.7.egg
Algorithm Hash digest
SHA256 4eefa8f60bf103f7635feb1f3c6d449cff219e8332a0aee7a753fbaef36d25e5
MD5 d4e6e9735aaaa0e47f8afa79f0df459e
BLAKE2b-256 af1a7a6d8a36fcec403f2f2f8e1828f71bf063ec036dbd3f2d4f9573e58036b6

See more details on using hashes here.

Provenance

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