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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pypatchergba-0.1.1.tar.gz.
File metadata
- Download URL: pypatchergba-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66b006919299976733ae05ac6f887a41d3c537e32166269b224e41a6f9fcdf4e
|
|
| MD5 |
82ccd13cc0aa24d01b6141f04b551ec1
|
|
| BLAKE2b-256 |
d17116c4f8729a3c049fa136d6620e092ea35b0667804a1f6383c8acd5972779
|
File details
Details for the file pypatchergba-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pypatchergba-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5707702478205bb4cc612e0bd778cfcd01d6f6c37c3dea872888724d5324951
|
|
| MD5 |
8fb2014da2885304f94ad886914ea74d
|
|
| BLAKE2b-256 |
ee93f9f593feba0c041e02de2a62478b6599ebd15915eca84c29cc5ddfdc77ca
|