cdsapi
cdsapi copied to clipboard
allow IO objects as file target
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.
Thanks @akeeman ! Is there a chance that this could be merged by a maintainer soon?
This pr is useless since the migration to https://github.com/ecmwf/multiurl/issues, which also does not support writing to IO objects.