Metadata-Version: 2.4
Name: gzinfo
Version: 1.0.3
Summary: Retrieving archive filename from gz files in Python
Project-URL: Homepage, https://github.com/PierreSelim/gzinfo
Author-email: Pierre-Selim <pierre-selim@huard.info>
License: MIT
License-File: LICENSE
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# Gzip Information
[![Build Status](https://travis-ci.com/PierreSelim/gzinfo.svg?branch=master)](https://travis-ci.com/PierreSelim/gzinfo)

Getting the original filename form gzip archive in Python (compatible with
Python 3.6, 3.7 and 3.8).

## Install
from github directly:

```
pip install git+https://github.com/PierreSelim/gzinfo.git
```

## Usage

If you gzip a file called `foo.txt` and rename the archive `bar.txt.gz` you can
still retrive the original name from the header (per
[RFC1952](https://tools.ietf.org/html/rfc1952))

```python
>>> import gzinfo
>>> info = gzinfo.read_gz_info('bar.txt.gz')
>>> info.fname
'foo.txt'
```
