cloudant-labs / cloudant-python

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

Better attachments interface #41

Open garbados opened 10 years ago

garbados commented 10 years ago

Something like this:

with open('...', 'r') as f:
    response = document.attachment('filename').put(f)

So you can put any file-like object as an attachment without doing any Base64 nonsense by your lonesome.