Skip to main content

CLI tool and Python library for managing Playstation 3 image files

Project description

PS3ISO

Command line tool and Python library for managing existing Playstation 3 image files

builds.sr.ht status Documentation Status

[PyPi] [sourcehut]

Installing

pip install ps3iso

Dependencies

isoinfo

isoinfo needs to be in the system PATH in order to extract SFO data directly from .iso images

Windows: https://smithii.com/files/cdrtools-latest.zip

macOS: brew install cdrtools

Linux: brew install genisoimage

Quick Program Help

usage: [-h] -i INPUT [-f FORMAT] [--rename]

optional arguments:
  -h, --help            show this help message and exit
  -i INPUT, --input INPUT
                        Path to the PS3 ISO file or directory containing PS3
                        ISO files
  -f FORMAT, --format FORMAT
                        Format string to use for output or --rename target
  --rename              Rename .iso and supporting files to a format string
                        based on PS3 metadata

Quick Library Examples

from ps3iso.game import Game

games = Game.search('/path/to/iso/files')
Game.rename_all(list(games), '%I-[%T]')
from ps3iso.game import Game

for game in Game.search('.'):
	game.print_info('{"file":"%F", "title":"%T", "ID":"%I"}')
from ps3iso.game import Game

games = Game.search('/path/to/iso/files')
for game in games:
	for f in game.files:
		print("Old name = %s" % f)
		print("New name = %s" % game.format_file(f, '%T [%I]'))
from ps3iso.sfo import SfoFile

with open('/path/to/PARAM.SFO', 'rb') as f:
	sfo = SfoFile.parse(f)

for key, value in sfo:
	print("key=%s, value=%r" % (key, value))
from ps3iso.sfo import SfoFile

sfo = SfoFile.parse_file('/path/to/PARAM.SFO')
print("Game ID = %s" % sfo.TITLE_ID)
print(sfo.format("Game Title = %T\n"))

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

ps3iso-0.3.3.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

ps3iso-0.3.3-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file ps3iso-0.3.3.tar.gz.

File metadata

  • Download URL: ps3iso-0.3.3.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ps3iso-0.3.3.tar.gz
Algorithm Hash digest
SHA256 53787ac032ba6b76ba63e8cb494c4896f8340181518b33aa4d92556d46acc3f5
MD5 90fae7a1824702423c4e6b0979bc53a0
BLAKE2b-256 390674695483cf8cce7c2935c3d4e386abd8de1bb25d91c02f64a9d22fea36b1

See more details on using hashes here.

File details

Details for the file ps3iso-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: ps3iso-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for ps3iso-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 84053323980b0c5c1281cfa61f86afedc7b4e83501ad0ab3d0ecdae094b24853
MD5 49ef5153a846a1332c2ee41a9f932fc5
BLAKE2b-256 6fe9903891913bce89f520e4d9ead80717345688019d5ffea8cd312a2097bfd9

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