Skip to main content

ZBIC compression algorithm of Nintendo Switch.

Project description

ZBIC

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 data == decompressed

Source code

https://github.com/kinnay/zbic

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

zbic-1.0.0.post1.tar.gz (482.1 kB view details)

Uploaded Source

File details

Details for the file zbic-1.0.0.post1.tar.gz.

File metadata

  • Download URL: zbic-1.0.0.post1.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

Hashes for zbic-1.0.0.post1.tar.gz
Algorithm Hash digest
SHA256 80f80f89c545d8ff7e7f3abb592dbeace69e6c708b3ac43319d4a7a602972dd4
MD5 08fc06d6df1afb3158fedea5a79ca9d9
BLAKE2b-256 c9bcec6289b97ce7ce8a7ee3d489ec78948ab6b452ee6476aa28cf1c82d7afe5

See more details on using hashes here.

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