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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file microcdt-0.1.1.tar.gz
.
File metadata
- Download URL: microcdt-0.1.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0facdd25ba2d0558d3e7070befd27732c79876c0a995fc1bf98faf39a1d72183 |
|
MD5 | 276665f3a1cc550ad4d7535b174ac85b |
|
BLAKE2b-256 | 7a2a93180fb885d550d2070806cc20e77f199e3fdc62f180c2bc992e7a908d12 |
File details
Details for the file microcdt-0.1.1-py2-none-any.whl
.
File metadata
- Download URL: microcdt-0.1.1-py2-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89ae7e46914cac8aa1a061c526c242d0be6ff9426720de5658a1dc6c4b360d91 |
|
MD5 | 78b3ddb50e1586850f89a3a17f8c9f3b |
|
BLAKE2b-256 | 281c8c678687b08b7a385e35fb90a2fb185287b5ae7f52f280269dd0d4efff58 |