Skip to main content

A simple Python library to apply IPS, UPS, and BPS ROM patches.

Project description

PyPatcherGBA

A simple command-line tool and Python library to apply IPS, UPS, and BPS ROM patches.

Installation

pip install pypatchergba

Usage

Command-Line

Apply a patch:

pypatchergba "my_rom.gba" "my_patch.ips"

Specify an output file:

pypatchergba "my_rom.gba" "my_patch.bps" -o "patched_rom.gba"

As a Python Library

You can also import and use the patcher in your own Python scripts.

import pypatchergba

# Patch from file paths
patched_data = pypatchergba.apply_patch("my_rom.gba", "my_patch.ups")

# Write the new file
with open("new_rom.gba", "wb") as f:
    f.write(patched_data)

print("Patching complete!")

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

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

pypatchergba-0.1.0.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pypatchergba-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pypatchergba-0.1.0.tar.gz.

File metadata

  • Download URL: pypatchergba-0.1.0.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.8

File hashes

Hashes for pypatchergba-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a9c5b4f42f06d485678071d6819674907e7ed53af896813f29e988e5ac71b8db
MD5 fe8e87152559786d90b9706613a98d1f
BLAKE2b-256 db7d3f65a3cfc6b15979f803f6245cda3572664789333253532067199620aa9f

See more details on using hashes here.

File details

Details for the file pypatchergba-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pypatchergba-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.8

File hashes

Hashes for pypatchergba-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4790673f58599d487f6b4751efc1af16b0cfa3bfdaaf1efaaed82cd95856dcac
MD5 0b518cd34a2f6ed5055a1a599b58c9e6
BLAKE2b-256 819d489751490a380e3c2542e2b7bd73f00fa4abcb87c7483e6bf66de0bea1cf

See more details on using hashes here.

Supported by

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