Closed martin-thoma closed 2 years ago
puremagic.from_stream(fh)
should do what you're looking for!
I def need to update the readme to have the new abilities that people have contributed, sorry about it not being easy to find!
Added quick example to readme with latest release. Thanks for pointing out the omission!
I would love to do something like this:
Especially the bytestream support might be nice in case the file is not / cannot / should not be stored on the disk (e.g. AWS Lambda)