Skip to main content

PSAS PSARC

PSAS PSARC is a light-weight Python package for managing PSARC archives for PlayStation All-Stars Battle Royale (PSAS). This package has support for both extracting and repacking PSARC archives for both the retail PS3 and Vita versions of the game. PSARC archives for the retail PS3 version are encrypted and this package contains special logic for decrypting retail PSARC archives and then repacking them into their original encrypted format.

Installation

Install PSAS PSARC via pip from PyPI:

pip install psas-psarc

Command-Line Utility

PSAS PSARC can be used as a simple command-line utility once installed. See the help output below for example usage.

$ psas-psarc -h
usage: psas-psarc [-h] {extract,repack} ...

Command-line utility for extracting and repacking PSARC archives for PlayStation All-Stars Battle Royale for the Playstation 3 and Playstation Vita.

positional arguments:
  {extract,repack}
    extract         Extract (and decrypt) PSARC archive
    repack          Repack PSARC archive

options:
  -h, --help        show this help message and exit
$ psas-psarc extract -h
usage: psas-psarc extract [-h] [-v | --verbose | --no-verbose] -p PSARC [-o OUTPUT]

options:
  -h, --help            show this help message and exit

generic arguments:
  -v, --verbose, --no-verbose
                        Enable verbose logging output (default: False)

psarc extraction arguments:
  -p PSARC, --psarc PSARC
                        Path to PSARC archive to extract
  -o OUTPUT, --output OUTPUT
                        Output directory to write extracted PSARC archive contents to (default: current directory)
$ psas-psarc repack -h
usage: psas-psarc repack [-h] [-v | --verbose | --no-verbose] -i INPUT -o OUTPUT [-e | --encrypt | --no-encrypt]

options:
  -h, --help            show this help message and exit

generic arguments:
  -v, --verbose, --no-verbose
                        Enable verbose logging output (default: False)

psarc repack arguments:
  -i INPUT, --input INPUT
                        Path to directory containing files to repack into PSARC archive
  -o OUTPUT, --output OUTPUT
                        Output file to write repacked PSARC archive to
  -e, --encrypt, --no-encrypt
                        Encrypt blobs when repacking PSARC archive for use with PS3 version (default: False)

Usage

PSAS PSARC can be imported and used inside of your own custom Python scripts. Example usage is shown below.

from psas_psarc import *

output_dir = "my_psarc_output"
my_psarc_archive = "patch.psarc"

# Extract the contents of patch.psarc to the path my_psarc_output
extract_psas_psarc(my_psarc_archive, output_dir)

# Extract individual files (my_test_file in the below example) from a given archive
my_file_bytes = extract_file_from_psas_psarc(my_psarc_archive, "my_test_file")

# Modify files from the extracted archive
...

# Repack the archive, reencrypt if using archives with the retail PS3 version
repack_psas_psarc("my_psarc_output/patch", "my_psarc_output/patch_repacked.psarc", encrypt=True)

Credits

Thanks to Hazza for developing the intial Python script for PSARC archive extraction.

Metadata

Release files for psas-psarc 1.0.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 psas-psarc 1.0.1
File Size Uploaded Provenance Actions
psas_psarc-1.0.1.tar.gz 15.8 kB Without provenance Details for psas_psarc-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for psas-psarc 1.0.1
File Interpreter ABI Platform Actions
psas_psarc-1.0.1-py3-none-any.whl Python 3 none any Details for psas_psarc-1.0.1-py3-none-any.whl

Total release size: 30.0 kB

Release files / psas_psarc-1.0.1.tar.gz

Download URL psas_psarc-1.0.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
86b96d5073824f61f360f8df809e1e22a0203fa5babe023fbc3fc2076c3fadd8
BLAKE2b-256 checksum
How to use checksums
2db6b49ede1f1a01ff5b0a9ced8165fce7a8be3a35b2c1a786d0780940eeabec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / psas_psarc-1.0.1-py3-none-any.whl

Download URL psas_psarc-1.0.1-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3782ef2835dc07169aaed332a48df629b98b04fab52dfe45a0d2e01a0e3ec169
BLAKE2b-256 checksum
How to use checksums
0d24d5e1d3f868b8d7eb7acc524d7655672469f3362de79720958ea47c526f55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Security for psas-psarc 1.0.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.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