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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| psas_psarc-1.0.0.tar.gz | 15.1 kB | Without provenance | Details for psas_psarc-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| psas_psarc-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for psas_psarc-1.0.0-py3-none-any.whl |
Total release size: 28.2 kB
Release files / psas_psarc-1.0.0.tar.gz
| Download URL | psas_psarc-1.0.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
648faa0958027009700320af20b4a7dc2ddc0a7bf7a26edc4286cd28c08dd779
|
|
BLAKE2b-256 checksum How to use checksums |
c4f693e16151e9c3395b7e1bc34844f3a60725b01775c742c33be590b341433b
|
| 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.0-py3-none-any.whl
| Download URL | psas_psarc-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21202442033be89f49c928dbaa02d1ccc5f6c0d316d1c0abb9901c6c3ef057c6
|
|
BLAKE2b-256 checksum How to use checksums |
676037ef7aac3bda8ad00547e39e5b7f7ccd07d7a9e5b149d03c8793b369e1a2
|
| 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.0
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.