Skip to main content

A dependency for cloudant

Project description

A Cloudant dependency for nameko, enabling services to interface with cloudant nosql database. Future improvements are CouchDB and local Cloudant.

Usage

from nameko_cloudant import DatabaseSession

class Service:

    session = Session("databasename")

    @event_handler("dispatcher", "topic")
    def handler(self, payload):
        self.session.create_document(payload)

    @rpc
    def query_db(self):
        selector = {'name': {'$eq': 'foo'}}
        docs = self.session.get_query_result(selector)

        for doc in docs:
            print doc

        ...

To-Do

  1. Write tests!

  2. Implement support for local bluemix instances.

  3. Implement support for CouchDB.

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

nameko-cloudant-0.1.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

nameko_cloudant-0.1.2-py2.py3-none-any.whl (3.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file nameko-cloudant-0.1.2.tar.gz.

File metadata

File hashes

Hashes for nameko-cloudant-0.1.2.tar.gz
Algorithm Hash digest
SHA256 391c7c0aa9537ca0a814dbc937edd324883ffef634823274e6f2070ee1afcb81
MD5 b400e080dc2ae792b5d34fd606484bc2
BLAKE2b-256 c5de1759fdbba594648ffa2f0a590224d74a6f44926da14fb78ab3bfd2cdc8d4

See more details on using hashes here.

File details

Details for the file nameko_cloudant-0.1.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for nameko_cloudant-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a2b603787ddda90becd08933dc9cfc1efade01f83e1caeb641b525ff9e287a54
MD5 620fdad63bfee910eb600d4c67820e8f
BLAKE2b-256 35c13730dc341b5998a7d515c6c9ce3adb1beddccd835666edae49ce0c4d7ed8

See more details on using hashes here.

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