Skip to main content

Compression utilities for tree sequences

Project description

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

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.1.tar.gz (170.7 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.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tszip-0.3.1.tar.gz
  • Upload date:
  • Size: 170.7 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.1.tar.gz
Algorithm Hash digest
SHA256 13b847b24a7ac4ce32eac84dcbddbad66cf4ffef83f66a7fa72882383e9e76d8
MD5 54776176b17cfd61af5d557332cee6f3
BLAKE2b-256 c1e03a8a016bd344b32542e8f5a0c3c7add4d383c55a3b8f6cc4b5bed253e877

See more details on using hashes here.

Provenance

The following attestation bundles were made for tszip-0.3.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: tszip-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 459ea5d2cf456840c86b6a119f2da7b6e41b09d302169a9ea000ec5bbf6037b2
MD5 a326795f848ccf8bb04fe090b17240d5
BLAKE2b-256 accf046c626d9d4acc9af08ea2492d9b4ba221a15983abee5db5da2f5d192295

See more details on using hashes here.

Provenance

The following attestation bundles were made for tszip-0.3.1-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