ZBIC compression algorithm of Nintendo Switch.
Project description
This project provides a Python package that supports compression and decompression of the ZBIC algorithm that was first seen on the Nintendo Switch in version 22.0.0.
The zstd.c, zstd.h and zstd_errors.h files in this repository were copied from Atmosphere-NX.
Installation
The package can be installed with pip: pip3 install zbic.
API reference
def compress(data: bytes) -> bytes: ...
def decompress(data: bytes) -> bytes: ...
Example usage
import zbic
data = b"Hello World!"
compressed = zbic.compress(data)
decompressed = zbic.decompress(compressed)
assert compressed == decompressed
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
zbic-1.0.0.tar.gz
(482.1 kB
view details)
File details
Details for the file zbic-1.0.0.tar.gz.
File metadata
- Download URL: zbic-1.0.0.tar.gz
- Upload date:
- Size: 482.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0666f1cacdd79317f942e76c4b0765b66a7b2458574a328bf38542121d480000
|
|
| MD5 |
2c66aa6d2d744ce74eb598676a870c85
|
|
| BLAKE2b-256 |
aa621ee10c19559b175545ee17267d250f2b09ee188e6bd5a29844a28ef9dc4d
|