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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nameko-cloudant-0.1.3.tar.gz
Algorithm Hash digest
SHA256 a28acf9b182ef99a32a85cd6c93adacfbe4df0bd4bf4f76ea90e5e7d98656368
MD5 8c202e1b98dcf1a6528a6ac3ee7c2060
BLAKE2b-256 6be38ce61d95b251e32649f1ecdfe321e47a60db9d4df700d422b11361605db2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nameko_cloudant-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7cc24d3da1e5fc7f9fa67045ab3b3a71220d8561eac40fe53082146f67c4d9d9
MD5 14f1b5ce7595b6a8e414a314b26dd3c2
BLAKE2b-256 e2d6fed4d8f04323b1d221949471e7ecd8186c17493285a99c8141e131c1ab00

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