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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nameko-cloudant-0.1.6.tar.gz
Algorithm Hash digest
SHA256 54fca92200ee38d95375e9ae51512baf0d0db9fb990d595ec081b329ebc819f4
MD5 bfefcc025b9096d90eed7db19c4bb64b
BLAKE2b-256 b40333988d0aef413a56ccaa395067665e73afcc75be83977a6ed365519865fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nameko_cloudant-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 92c373e375379afe22860b6c95d2730824d4ee82c3c46936068911aca5ab9a9f
MD5 0d16e16dba54f0fba1d845c2769e2a4b
BLAKE2b-256 7f18a6ca8bf051ddc443a26f50dd9cc776de553a527da8a1cb78fbc65f5105ef

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