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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for nameko-cloudant-0.1.5.tar.gz
Algorithm Hash digest
SHA256 255cd1ae250ed766f63c337e490298e1a209a53f4776f5981d8073d67fee7ad4
MD5 4d9e62fa250a25c602329f7d231c8434
BLAKE2b-256 4b745ae286b0ec41d0b019292f7bb4eeb402b6f54926a03a00eefd1584f112bd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nameko_cloudant-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 592c0a7d8542859f59be49ecd9c198f48b1b046e2353aa261782aa3e406fd4c4
MD5 2a8518be9e1ec07459ff925fba226797
BLAKE2b-256 13d877133b9066ff5ea0baf78772bc04e10add0149fb07bf348864f133efdf7a

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