cloudant-labs/cloudant-python

Better attachments interface

Opened this issue · 0 comments

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.