8000 GitHub - Superxpdude/pbokit: Arma 3 PBO extractor library for Python
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Superxpdude/pbokit

Repository files navigation

PBOkit

Fully-typed Arma 3 PBO extractor library for Python 3.10 and up.

Usage

Load PBOkit

import pbokit

Read the contents of a PBO file

pbo = pbokit.PBO.from_file("pbofile.pbo")

Read a PBO file from bytes

pbo = pbokit.PBO.from_bytes(b"bytes_go_here")

Check if a file exists in the PBO

pbo = pbokit.PBO.from_file("pbofile.pbo")
pbo.has_file("description.ext")

Read the contents of a file in the PBO

Binary Files

pbo = pbokit.PBO.from_file("pbofile.pbo")
pbo["loadscreen.paa"].as_bytes()

Text Files

pbo = pbokit.PBO.from_file("pbofile.pbo")
pbo["description.ext"].as_str()

Read header values from the PBO

pbo = pbokit.PBO.from_file("pbofile.pbo")
pbo.headers["prefix"]

About

Arma 3 PBO extractor library for Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

0