Skip to main content

A tool to decrypt .rpyc files

Project description

rpycdec

A tool for decompiling Ren'py compiled script files (.rpyc and .rpymc).

Features

  • Decompile .rpyc and .rpymc files to readable Ren'Py script code
  • Extract RPA archives
  • Create RPA archives from existing files or directories
  • 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

Create RPA archive:

rpycdec rpa /path/to/game/files -o 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/store packages 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

Alternative

  • unrpyc - The well-established and widely-used Ren'Py script decompiler

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

rpycdec-0.1.13.tar.gz (42.8 kB view details)

Uploaded Source

Built Distribution

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

rpycdec-0.1.13-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file rpycdec-0.1.13.tar.gz.

File metadata

  • Download URL: rpycdec-0.1.13.tar.gz
  • Upload date:
  • Size: 42.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rpycdec-0.1.13.tar.gz
Algorithm Hash digest
SHA256 ed39f72776fbd136ae80a25abbc406c53fad94c1e3c68db6f6f14c2da7afbf2f
MD5 68792e1759fdcf16203f83917b40470f
BLAKE2b-256 77e26af4a9685b385a2d3eb77b634ba59517cc8f4ebd0a1e6baa174891ab3481

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.13.tar.gz:

Publisher: python-publish.yml on cnfatal/rpycdec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rpycdec-0.1.13-py3-none-any.whl.

File metadata

  • Download URL: rpycdec-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rpycdec-0.1.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3e62b69a48fe5488871e2249c530da3d84c82dc7de11f3f858c035dfa5ccb15e
MD5 3d7890b5ba7660ab7faa70824a400030
BLAKE2b-256 120e93a3b58272561bfd4a450062fd4e40fc4b39dceaeb8ab159e6d204ee3dfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for rpycdec-0.1.13-py3-none-any.whl:

Publisher: python-publish.yml on cnfatal/rpycdec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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