You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a function, open_or_gzopen(), in util/file.py that provides a unified and somewhat flexible way to open various types of compressed files and return a file handle with an interface (largely) compatible with Python's built-in open().
We may want to consider replacing open_or_gzopen() with a call out to the more flexible and modern smart_open() function provided by the eponymous library, while preserving a function stub of open_or_gzopen() (with deprecation warning) to maintain compatibility for existing calls to open_or_gzopen().
In addition to supporting various compression types, smart_open() can also open data stored on cloud storage services like S3, GCS, and Azure.
The text was updated successfully, but these errors were encountered:
We currently have a function,
open_or_gzopen()
, inutil/file.py
that provides a unified and somewhat flexible way to open various types of compressed files and return a file handle with an interface (largely) compatible with Python's built-inopen()
.We may want to consider replacing
open_or_gzopen()
with a call out to the more flexible and modernsmart_open()
function provided by the eponymous library, while preserving a function stub ofopen_or_gzopen()
(with deprecation warning) to maintain compatibility for existing calls toopen_or_gzopen()
.In addition to supporting various compression types,
smart_open()
can also open data stored on cloud storage services like S3, GCS, and Azure.The text was updated successfully, but these errors were encountered: