Skip to main content

CSB Util

Utility to encode and decode .csb files.

CSB is basically a binary version of a CSV file optimized for quick parsing (it's definitely not optimized for file size as csb files are much larger than their csv counterparts)

These files are found in The Battle Cats Unite!. Although the CSB format is very similar to BNTX, which is used for images, which either means that PONOS took heavy inspiration from that format, or the CSB format is another Nintendo file format that alrady existed but isn't documented online. To get the csb files from the game you have to extract the .arc files which I won't be getting into here, I might make a tool in the future that extracts them though.

I've released this tool separately as other games might use the format too if it is a Nintendo format.

ko-fi

Installation

pip install csb_util

Usage

Most of what you need to know is detailed in the --help option

python3 -m csb_util --help

Decode

python3 -m csb_util decode --help

To decode csb files you can either pass in individual files with the --files option, e.g

python3 -m csb_util decode --files file1.csb file2.csb --outdir output

To decode a folder of csb files you can use the --dirs option, e.g

python3 -m csb_util decode --dirs folder1 folder2 --outdir output

If you have non-csb files in that folder that you want to ignore use the --ignore flag, e.g

python3 -m csb_util decode --dirs mixed_use_folder --outdir output --ignore

Encode

python3 -m csb_util encode --help

Encode csv files back to csb files.

Options are basically the same as decode, so just read that

Install From Source

git clone https://codeberg.org/fieryhenry/csb_util.git
cd csb_util
pip install -e .

Metadata

Release files for csb-util 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csb-util 0.1.1
File Size Uploaded Provenance
csb_util-0.1.1.tar.gz 19.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for csb-util 0.1.1
File Interpreter ABI Platform
csb_util-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.4 kB

Release files / csb_util-0.1.1.tar.gz

Download URL csb_util-0.1.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5ab58253bc43404d0ba7eadd5beab22cda89a639e9d92fe97d77a8aea216881a
BLAKE2b-256 checksum
How to use checksums
e0e1370b5566ab33419f1e666e252542883cea448da2d5c9c9776b07a79dfe60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / csb_util-0.1.1-py3-none-any.whl

Download URL csb_util-0.1.1-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6d6b962cd5572d4e45b272ef53ce56f63a63cc9680f561b758a7ee701855a6e3
BLAKE2b-256 checksum
How to use checksums
19d2acd16b14b0324fe043461389cd899f0d4c40903a43de04dc9a9a81547556
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for csb-util 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page