NebulousLabs / python-skynet

Library for integrating Skynet with Python applications
MIT License
19 stars 11 forks source link

Additional Metadata #16

Closed xloem closed 4 years ago

xloem commented 4 years ago

I was working with the metadata feature and discovered the 'len' field is not included in chunked uploads.

So I've expanded the metadata provided to show the length and content-type from the HTTP headers, as they are available there.

It is good to know the length without needing to download the file.

Kcchouette commented 4 years ago

Here my 2cents: I think dealing with this kind of code should be done by the user of the library, not by the library itself. It alread has metadata_request where you have the full request object...

xloem commented 4 years ago

Thanks for the comment.

That's what I've ended up doing locally, using metadata_request by hand.