python-bioformats icon indicating copy to clipboard operation
python-bioformats copied to clipboard

Instantiate file reader with stream instead of path

Open evan-anderson-ts opened this issue 4 years ago • 0 comments

I'm currently using python-bioformats to extract OME XML from confocal data using data that I'm pulling from AWS S3 using s3-streaming.

In order to do this, I have to first write the file to disk (in my case, a docker container), and then provide get_omexml_metadata with the path that I wrote to. This works fine, but it would be much more ideal to be able to provide get_omexml_metadata with a file like object rather than a path.

My question is -- is this possible? If it's possible, how much work would it be to implement? Is it a common enough use case for folks that it would be worthwhile to implement?

If these kinds of questions aren't appropriate for the issues section of the repo, feel free to close :) thanks for your work on a great python wrapper for this library!

evan-anderson-ts avatar May 28 '21 22:05 evan-anderson-ts