cloudant-labs / cloudant-python

Asynchronous Cloudant / CouchDB interface for Python
http://cloudant-labs.github.io/cloudant-python/
37 stars 17 forks source link

Compatibility #18

Closed garbados closed 10 years ago

garbados commented 10 years ago
  1. Added __delitem__ to Account, so you can do del account[db_name]
  2. Changed save_docs to bulk_docs to reflect API.
garbados commented 10 years ago

Addresses https://github.com/cloudant-labs/cloudant-python/issues/17

coveralls commented 10 years ago

Coverage Status

Coverage remained the same when pulling a746de5023214f3cefdf3ed336829a485da8454f on compatibility into cf4dac87f7642479691b7fb7abfd2eaca82c0479 on master.

garbados commented 10 years ago

This branch was named to address https://github.com/cloudant-labs/cloudant-python/issues/16 but the cloudant-python API is mutually exclusive with the couchdb-python / couchdbkit APIs to such a degree that it strikes me as counterproductive to imply code written for one will port painlessly to using another.

For example, couchdb-python and cloudant-python Database objects have a delete method, but they function completely differently. I'd like to keep the API clean and minimal, reflecting only the Cloudant API itself, rather than the design choices of prior artists merely because they're prior artists.

Ex: save_docs as couchdbkit does, to bulk_docs as the Cloudant API does.