Skip to content

kinnay/zbic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python package for the ZBIC compression algorithm of the Nintendo Switch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors