cdsapi icon indicating copy to clipboard operation
cdsapi copied to clipboard

allow IO objects as file target

Open akeeman opened this issue 2 years ago • 1 comments

The library is able to help with downloading data to a local file. Sometimes the target is not local, however. It would be great to allow not only writing to local files, but any IO object, which may represent remote files.

This is basically implemented by adding io.RawIOBase and io.BufferedIOBase to the allowed target types.

akeeman avatar Apr 25 '23 20:04 akeeman

Thanks @akeeman ! Is there a chance that this could be merged by a maintainer soon?

niowniow avatar Jun 06 '24 19:06 niowniow

This pr is useless since the migration to https://github.com/ecmwf/multiurl/issues, which also does not support writing to IO objects.

akeeman avatar Aug 19 '24 14:08 akeeman