Skip to main content

Retrieving archive filename from gz files in Python

Project description

Gzip Information

Build Status

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 you can still retrive the original name from the header (per RFC1952)

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gzinfo-1.0.2.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file gzinfo-1.0.2.tar.gz.

File metadata

  • Download URL: gzinfo-1.0.2.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for gzinfo-1.0.2.tar.gz
Algorithm Hash digest
SHA256 97bd6adc009ed2c6fd349b778c1f30e49b1b77709eed37432ce640e4977c737f
MD5 ac36d81f9d74d6c6c155602dfe392cbb
BLAKE2b-256 b6de96af951b15cc1f84e885dd814c6ddf92f87c33e7da99e968c5b79af11283

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page