Skip to main content

tszip

License PyPI version Supported Python Versions Docs Build Tests codecov

Gzip-like compression for tskit tree sequences. Compression is lossless for supported tskit tree sequences.

Please see the documentation (latest) for more details and installation instructions.

Installation

Install from PyPI or conda-forge:

python -m pip install tszip
# or
conda install -c conda-forge tszip

Quickstart

CLI usage:

# Compress a .trees file to a .tsz archive
tszip data.trees

# Decompress back to .trees
tsunzip data.trees.tsz

Along with the CLI, tszip can be used directly from Python:

import tskit
import tszip

ts = tskit.load("data.trees")
tszip.compress(ts, "data.trees.tsz")  # write compressed archive

# load handles .tsz archives and plain .trees files
restored = tszip.load("data.trees.tsz")
print(restored.equals(ts))  # True

Release files for tszip 0.3.1

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

Source distribution (sdist)

Source distribution for tszip 0.3.1
File Size Uploaded
tszip-0.3.1.tar.gz 170.7 kB Details

Built distribution (wheel)

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

Total release size: 186.3 kB

Release files / tszip-0.3.1.tar.gz

Download URL tszip-0.3.1.tar.gz
Size 170.7 kB
Tags Source
SHA-256 checksum
How to use checksums
13b847b24a7ac4ce32eac84dcbddbad66cf4ffef83f66a7fa72882383e9e76d8
BLAKE2b-256 checksum
How to use checksums
c1e03a8a016bd344b32542e8f5a0c3c7add4d383c55a3b8f6cc4b5bed253e877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 5, 2026.

Transparency log

Release files / tszip-0.3.1-py3-none-any.whl

Download URL tszip-0.3.1-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
459ea5d2cf456840c86b6a119f2da7b6e41b09d302169a9ea000ec5bbf6037b2
BLAKE2b-256 checksum
How to use checksums
accf046c626d9d4acc9af08ea2492d9b4ba221a15983abee5db5da2f5d192295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

1 release file

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