Skip to content
Seregon edited this page Oct 23, 2023 · 1 revision

Here is the Usage page content in English:

Usage

This page provides detailed instructions on how to install and use APFU - PS4 Pup File Extractor.

Installation

To install APFU:

  1. Clone the GitHub repository:
git clone https://github.com/seregonwar/Pup-file-extractor
  1. Install the required Python dependencies:
pip install -r requirements.txt
  1. Run the main script:
python pup_unpacker.py

Basic Usage

To use APFU:

  1. Launch pup_unpacker.py

  2. Select the PUP file via the file dialog

  3. Files contained in the PUP will be extracted to the same folder

Command Line Options

APFU supports several command line options:

usage: pup_unpacker.py [-h] [-v] pup_file  

Positional arguments:
  pup_file      Path to PUP file for extraction

Optional arguments:
  -h, --help    Show this help message and exit
  -v, --verbose Verbose output

For example, to enable verbose output:

python pup_unpacker.py -v firmware.pup

Integration in Other Scripts

The main classes and functions in pup_unpacker.py can be imported and used in other Python scripts:

import pup_unpacker

pup = pup_unpacker.Pup("firmware.pup")

for file in pup.extract_all():
  print(file)

See the source code for full details on the available API.

Let me know if you would like me to expand or add details to this Usage page.

Clone this wiki locally