metricq / aiocouch

🛋 An asynchronous client library for CouchDB 2.x and 3.x
https://aiocouch.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
29 stars 10 forks source link

Attachments #18

Closed adrienverge closed 4 years ago

adrienverge commented 4 years ago

CouchDB support attaching binary files to documents, using /db/doc/attachment path: https://docs.couchdb.org/en/2.3.0/api/document/attachments.html

Do you have any plans to implement that? If not, I propose to look into it. This could go in a new aiocouch.attachment.Attachment class, with a Document().attachment(id) helper.

bmario commented 4 years ago

It sounds like a good idea to me. I'll gladly accept a PR.

I also see an aiocouch.remote.Attachment class.