Socket
Book a DemoInstallSign in
Socket

microcdt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microcdt

A microscopic client library for accessing Cloudant databases

0.1.1
pipPyPI
Maintainers
1

A Tiny Cloudant Client Library

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

.. code:: python

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)

Keywords

databases development

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.