Skip to main content

Compression utilities for tree sequences

Project description

tszip

License PyPI version Supported Python Versions Docs Build Binary wheels 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

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

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

tszip-0.3.0.tar.gz (50.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tszip-0.3.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file tszip-0.3.0.tar.gz.

File metadata

  • Download URL: tszip-0.3.0.tar.gz
  • Upload date:
  • Size: 50.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tszip-0.3.0.tar.gz
Algorithm Hash digest
SHA256 007d25e1dfb617e90e9ae94a34b26327ea7902881617069efe76f609d2b3654e
MD5 0879d44387ec58b6bd3610794d2ec031
BLAKE2b-256 387b37f6e2fda995235c3c8c09a60d8173a86ffc45c63c29cbbcd10f9604f6f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for tszip-0.3.0.tar.gz:

Publisher: wheels.yml on tskit-dev/tszip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tszip-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tszip-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tszip-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ede30ace6f4dfd86dc24d84a1b0f40223a019f87c163c95b032adb1add25a373
MD5 f99d26343c41934549c5d49ad3e10d17
BLAKE2b-256 11bdb587aa7bde1a50beaa147c8a15f7e2a41944d40bd5bea85d59dbaea94f6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tszip-0.3.0-py3-none-any.whl:

Publisher: wheels.yml on tskit-dev/tszip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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