Yamale
Yamale copied to clipboard
Support file object in make_data()
When receiving a file from a HTTP PUT request it seems tedious to have to save the file or to convert it to string when using make_data() method. Would be great if I could just put the file object directly to make_data().
Thanks for your interest in Yamale.
I wouldn't mind extending the content attribute to accept a string-like object or a file-like object. It may take a while for us to get to this feature request. We do accept pull requests if you'd like to contribute.