Skip to main content

A microscopic client library for accessing Cloudant databases

Project description

The purpose of microcdt is to be the smallest practical client library for accessing Cloudant/CouchDB databases. It’s neither fully featured, nor complete in its API surface cover (nor is it intended to be).

It caters for the most basic operations, such as creating and deleting databases, reading, creating, deleting, and updating documents, and listing all documents in a database.

It also has rudimentary support for bulk operations.

The Cloudant class subclasses requests.Session, so any API endpoint not implemented directly can always be called using Cloudant.get|put|post|request.

Examples

from microcdt import Cloudant

db = 'mydatabase'
cdt = Cloudant('https://account.cloudant.com')
cdt.auth = (USERNAME, PASSWORD)

cdt.create_database(db)
result = cdt.create_doc(db, {'name': 'adam'})

cdt.delete_database(db)

Project details


Release history Release notifications

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
microcdt-0.1.0-py2.py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jan 22, 2018
microcdt-0.1.0.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None Jan 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page