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
Write tests!
Implement support for local bluemix instances.
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.7.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file nameko-cloudant-0.1.7.tar.gz
.
File metadata
- Download URL: nameko-cloudant-0.1.7.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 999d7c134e58a10c100c35ce9262058d95ca13e672b8abf3732f6d3439cda079 |
|
MD5 | 9643d85ed8a77e335fdf2d0bb89d96de |
|
BLAKE2b-256 | 76244816e19e8ef3069ebde90df7905a402e251a13a6d4a3f174a44ad2310bca |
File details
Details for the file nameko_cloudant-0.1.7-py3-none-any.whl
.
File metadata
- Download URL: nameko_cloudant-0.1.7-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ebc150ece3dd5339a4bfcd98575ec634e0399e6886d30d93d50b2be715c6e67 |
|
MD5 | d902163d3331e4b9fdce0f73a6eb725b |
|
BLAKE2b-256 | f81f468eed99eda569eab9d822dde7199baa018ac88a42ed6cb962dc5f17da2a |