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.4.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

nameko_cloudant-0.1.4-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nameko-cloudant-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cde70b211c83768e9d041dd32e89c75b0f9b43ad04ee7ce70accf5f7ad3a8935
MD5 403bebb35f03bcb31d0b1ded9ae5b57a
BLAKE2b-256 04fb81341d22e7d2d3a5a0c25a55a24faa21a855e75714d2f08bea434fe6c422

See more details on using hashes here.

File details

Details for the file nameko_cloudant-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nameko_cloudant-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a59bace0ad5aad077cbb7389573d4598f8b6e2af05437cfb6fa8bbe86bbe6b8d
MD5 8ed133f2b0fa9176334baa4b930f81cf
BLAKE2b-256 f4cf49addfd831365952a39f9aa96c69a61f2917da146f7122a8832053b09b33

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