A tool to decrypt .rpyc files
Project description
rpycdec
A tool for decompiling Ren'py compiled script files (.rpyc and .rpymc).
Features
- Decompile
.rpycand.rpymcfiles to readable Ren'Py script code - Extract RPA archives
- Extract and edit Ren'Py save files (
.save→ JSON →.save) - Extract Ren'Py games from Android APK files
- Extract translations from compiled scripts to
tl/{language}/directories - Support for multiple Ren'Py versions (7.x, 8.x)
Installation
Install with pip:
pip install rpycdec
Or install from source:
git clone https://github.com/cnfatal/rpycdec.git
cd rpycdec
pip install .
Usage
Command Line Interface
Decompile a single file:
rpycdec decompile script.rpyc
Decompile all files in a directory:
rpycdec decompile /path/to/game/
Extract RPA archive:
rpycdec unrpa archive.rpa
Extract Ren'Py game from Android APK:
rpycdec extract-game game.apk
Extract translations:
rpycdec extract-translate /path/to/game/ -l Chinese
Security Warning
This tool processes .rpyc, .rpymc, .rpa, and .save files which use Python's pickle format internally. rpycdec uses restricted unpicklers with whitelist-based class loading to mitigate arbitrary code execution risks, but no pickle safeguard is perfect. Only process files from sources you trust.
Set RPYCDEC_NO_WARNING=1 to suppress the CLI security warning.
See also: Python pickle security warning
Troubleshooting
-
Q: Pickle error
ModuleNotFoundError: No module named '...'A: This means our fake
renpy/storepackages don't cover the class your file needs. Please open an issue with the Ren'Py version and the file that failed.
Contributing
Contributions are welcome! Please open an issue before submitting major changes so we can discuss the approach.
Community & Support
- GitHub Issues — Bug reports and feature requests
- Telegram Group — Community discussion and support
Alternative
- unrpyc - The well-established and widely-used Ren'Py script decompiler
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 rpycdec-0.1.12.tar.gz.
File metadata
- Download URL: rpycdec-0.1.12.tar.gz
- Upload date:
- Size: 37.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7d72715c82131051e4c167dc550804a8f2d28c19832cf0be981fbc79f973d41
|
|
| MD5 |
86b40943b6c9a4769b3090f8c3b5d074
|
|
| BLAKE2b-256 |
ad47fcdebbca06a259a11b574889acd99ea8df1fc16cde87e184c1d9901a65cf
|
Provenance
The following attestation bundles were made for rpycdec-0.1.12.tar.gz:
Publisher:
python-publish.yml on cnfatal/rpycdec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpycdec-0.1.12.tar.gz -
Subject digest:
f7d72715c82131051e4c167dc550804a8f2d28c19832cf0be981fbc79f973d41 - Sigstore transparency entry: 962197367
- Sigstore integration time:
-
Permalink:
cnfatal/rpycdec@2d1543e5ba26bb0c74d9b6aba33c54ddae94a835 -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/cnfatal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2d1543e5ba26bb0c74d9b6aba33c54ddae94a835 -
Trigger Event:
push
-
Statement type:
File details
Details for the file rpycdec-0.1.12-py3-none-any.whl.
File metadata
- Download URL: rpycdec-0.1.12-py3-none-any.whl
- Upload date:
- Size: 48.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9bdb4df963fdcca8abd2a24fe5754fed94e7eb4f2cc6c13c27e4db858896b2b
|
|
| MD5 |
057cbfe609c63437cbd13217fadd50aa
|
|
| BLAKE2b-256 |
098a865c4eeb4d205061f6edcb5af2454ab3cfad4117b1e751a64655e0898890
|
Provenance
The following attestation bundles were made for rpycdec-0.1.12-py3-none-any.whl:
Publisher:
python-publish.yml on cnfatal/rpycdec
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rpycdec-0.1.12-py3-none-any.whl -
Subject digest:
b9bdb4df963fdcca8abd2a24fe5754fed94e7eb4f2cc6c13c27e4db858896b2b - Sigstore transparency entry: 962197369
- Sigstore integration time:
-
Permalink:
cnfatal/rpycdec@2d1543e5ba26bb0c74d9b6aba33c54ddae94a835 -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/cnfatal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@2d1543e5ba26bb0c74d9b6aba33c54ddae94a835 -
Trigger Event:
push
-
Statement type: