Skip to main content

Yet Another PBO Library

Project description

Yet Another PBO Library

Yapbol is yet another pbo library to unpack and/or modify PBO files used by the game Arma 3.

Installing

pip install yapbol

Usage

Read the contents of a file in the PBO

from yapbol import PBOFile

pbo = PBOFile.read_file('filepath.pbo')

# Get metadata.hpp file, that's encoded in utf-8, from the PBO
file = pbo['metadata.hpp']
print('File contents: ', file.data.decode('utf-8'))

Print the contents of a PBO file

from yapbol import PBOFile

pbo = PBOFile.read_file('filepath.pbo')

for file in pbo:
    print('File name: ', file.filename)

Modify and save the PBO

from yapbol import PBOFile

pbo = PBOFile.read_file('filepath.pbo')

# TODO: Modify the file here

pbo.save_file('filepath.repack.pbo')

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

yapbol-0.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

yapbol-0.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file yapbol-0.2.tar.gz.

File metadata

  • Download URL: yapbol-0.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for yapbol-0.2.tar.gz
Algorithm Hash digest
SHA256 8efddfd51180521dcd55306d431d6a4490abd12bc106255e63225221b840fdd5
MD5 a6175b84e955b872c85ed8e075762903
BLAKE2b-256 aec41570f26060a4640086e63e2bca3f6434d89847ae7db7fc4c8849ff5f627e

See more details on using hashes here.

File details

Details for the file yapbol-0.2-py3-none-any.whl.

File metadata

  • Download URL: yapbol-0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for yapbol-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b3ca056a549723b63e12f30f25a03565472242605d2544a3051e21e4ca9151df
MD5 bf28749dff2dc63d537c2a1464f8d265
BLAKE2b-256 43aa68405e134efebfc1c876c5ef04a76ea077fd38cb9882544368deba92c327

See more details on using hashes here.

Supported by

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