convert_to_writable_filelike¶
- astropy.io.votable.util.convert_to_writable_filelike(fd, compressed=False)[source]¶
Returns a writable file-like object suitable for streaming output.
- Parameters:
- fd
python:str
or python:file-like object May be:
a file path string, in which case it is opened, and the file object is returned.
an object with a :meth:
write
method, in which case that object is returned.
- compressedbool, optional
If
True
, create a gzip-compressed file. (Default isFalse
).
- fd
- Returns:
- fdwritable file-like object python:file-like object