CellProfiler / python-bioformats

Read and write life sciences file formats
Other
131 stars 45 forks source link

Instantiate file reader with stream instead of path #146

Open evan-anderson-ts opened 3 years ago

evan-anderson-ts commented 3 years ago

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!