open_gz
- open_gz(key, *subkeys, name, mode='rt', open_kwargs=None)[source]
Open a gzipped file that exists already.
- Parameters:
key (
str
) – The name of the module. No funny characters. The envvar <key>_HOME where key is uppercased is checked first before using the default home directory.subkeys (
str
) – A sequence of additional strings to join. If none are given, returns the directory for this module.name (
str
) – The name of the file to openmode (
str
) – The read mode, passed togzip.open()
open_kwargs (
Optional
[Mapping
[str
,Any
]]) – Additional keyword arguments passed togzip.open()
- Yields:
An open file object