Compression utilities for tree sequences
Project description
tszip
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
007d25e1dfb617e90e9ae94a34b26327ea7902881617069efe76f609d2b3654e
|
|
| MD5 |
0879d44387ec58b6bd3610794d2ec031
|
|
| BLAKE2b-256 |
387b37f6e2fda995235c3c8c09a60d8173a86ffc45c63c29cbbcd10f9604f6f7
|
Provenance
The following attestation bundles were made for tszip-0.3.0.tar.gz:
Publisher:
wheels.yml on tskit-dev/tszip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tszip-0.3.0.tar.gz -
Subject digest:
007d25e1dfb617e90e9ae94a34b26327ea7902881617069efe76f609d2b3654e - Sigstore transparency entry: 919338246
- Sigstore integration time:
-
Permalink:
tskit-dev/tszip@75cb2bf84382a3ffee8fc80d75e3ba087b7486dc -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/tskit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@75cb2bf84382a3ffee8fc80d75e3ba087b7486dc -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ede30ace6f4dfd86dc24d84a1b0f40223a019f87c163c95b032adb1add25a373
|
|
| MD5 |
f99d26343c41934549c5d49ad3e10d17
|
|
| BLAKE2b-256 |
11bdb587aa7bde1a50beaa147c8a15f7e2a41944d40bd5bea85d59dbaea94f6a
|
Provenance
The following attestation bundles were made for tszip-0.3.0-py3-none-any.whl:
Publisher:
wheels.yml on tskit-dev/tszip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
tszip-0.3.0-py3-none-any.whl -
Subject digest:
ede30ace6f4dfd86dc24d84a1b0f40223a019f87c163c95b032adb1add25a373 - Sigstore transparency entry: 919338256
- Sigstore integration time:
-
Permalink:
tskit-dev/tszip@75cb2bf84382a3ffee8fc80d75e3ba087b7486dc -
Branch / Tag:
refs/tags/0.3.0 - Owner: https://github.com/tskit-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
wheels.yml@75cb2bf84382a3ffee8fc80d75e3ba087b7486dc -
Trigger Event:
release
-
Statement type: