Skip to main content

Multi GZip

This package is a port of the Python2 gzip implementation with the goal of providing multi-member gzip support. Currently Python3's gzip implementation supports reading multi-member gzip files as a single stream, but does not provide the ability to read or write one member at a time. This is useful for iterating over the members of a gzip file in e.g. WARC files.

Usage Example

from multigzip import GzipFile

with GzipFile(filename='tests.txt.gz', mode='wb') as f:
    f.write_member(b'Hello world 1')
    f.write_member(b'Hello world 2')
    f.write_member(b'Hello world 3')

with GzipFile(filename='tests.txt.gz', mode='r') as f:
    # Note that read() returns a file-like object
    # this is unchanged vs the `gzip2` module ported
    # from warc
    print(f.read_member().read())
    print(f.read_member().read())
    print(f.read_member().read())

Supports Python3 Only

Metadata

Release files for multigzip 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for multigzip 0.0.2
File Size Uploaded
multigzip-0.0.2.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for multigzip 0.0.2
File Interpreter ABI Platform
multigzip-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.8 kB

Release files / multigzip-0.0.2.tar.gz

Download URL multigzip-0.0.2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4359e1893c54bad3a4431a6d8c011df48985efb72825617597263d2c224ee2e1
BLAKE2b-256 checksum
How to use checksums
f86a3332e8af645a54d180cc262331aeda0dae6eeb2d36039309565d88d290f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release files / multigzip-0.0.2-py3-none-any.whl

Download URL multigzip-0.0.2-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
520ebc2b7a3c1674d8656b33b86843b8824a175a169df68629db5e7a75efd858
BLAKE2b-256 checksum
How to use checksums
f5b37362137de69071ae226c647642ae021aae9226d47c8067bdf7e18b357045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page