Skip to main content

Fully-typed Arma 3 PBO extractor library

Project description

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"]

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

pbokit-0.2.0.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

pbokit-0.2.0-py3-none-any.whl (3.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page