Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

rpa2src

Turns a shipped Ren'Py game into a developer project: unpacks .rpa archives, decompiles .rpyc into .rpy at their original paths, lays out assets exactly as the engine sees them, and produces a folder you can open in the Ren'Py Launcher, run, edit and build again.

rpa2src inspect ~/Games/MyVN-1.2-pc            # what's inside: Ren'Py version, archives, scripts, protections
rpa2src convert ~/Games/MyVN-1.2-pc            # → ~/Games/MyVN-1.2-pc-src (a project for the Ren'Py SDK)
rpa2src convert ~/Games/MyVN-1.2-pc --inject   # game with its own encryption: capture data by running the game

Supports games built with Ren'Py 6.18 and newer.

Status: 1.0 release candidate (1.0.0rc1). Working: inspect, ls, cat, extract, decompile, ast, convert, verify and injection mode (inject, convert --inject) for Ren'Py 6.18–8.6 games: PC and Mac folders, APK/AAB, web builds, zip and tar distributions; official and modified RPA archives; --try-harder for obfuscated scripts and unknown archive headers; screen language 1; plugins for game-specific formats (--plugin). Not supported: the Ren'Py 8.5+ test language (testsuite; such a file stays a .rpyc in the project, which still runs). Game modules shipped only as Python bytecode (.pyc) are decompiled where a decompiler manages it and the result is proven to compile back to the same bytecode; the rest stay .pyc and still load (CLI.md).

Install

pipx install rpa2src        # or: uv tool install rpa2src / pip install rpa2src

No Python? Standalone binaries for Windows, macOS (Apple silicon and Intel) and Linux are attached to each GitHub release. On Windows you can drop a game folder onto rpa2src.exe.

rpa2src convert path/to/MyVN-1.0-pc        # → MyVN-1.0-pc-src/
rpa2src verify MyVN-1.0-pc-src --download  # recompile with the same SDK, compare ASTs

Games whose own Python modules ship only as .pyc: install the optional decompilers with pipx install "rpa2src[pyc]" (uncompyle6 for Python 2.7, depyo for Python 3 and as a fallback); for the modules they miss, the optional PyLingual plugin (--plugin rpa2src.contrib.pylingual, CLI.md).

From a checkout: pip install -e ".[dev]", then pytest.

Documents

  • docs/DESIGN.md — goal, principles, language choice, architecture, security, testing, roadmap.
  • docs/CLI.md — command-line specification: commands, options, output, exit codes, JSON events, config.
  • docs/FORMATS.md — .rpa and .rpyc formats and the Ren'Py loader rules, checked against the engine source.
  • docs/API.md — the Python API, with a runnable example
  • docs/DIAGNOSTICS.md — every diagnostic code and what it means
  • docs/RELEASING.md — how a release is made

Key decisions

  • Python ≥ 3.11, no runtime dependencies (the .pyc decompilers are an optional extra). The decompiler is ported from unrpyc (MIT) with attribution; distributed via PyPI and standalone binaries.
  • No pickle.loads on game data — only a restricted unpickler with an allowlist.
  • The project always runs: anything that fails to decompile stays as the original .rpyc.
  • Saves keep working: the original .rpyc files go into old-game/, so Ren'Py keeps statement names stable when the project is rebuilt.
  • Accuracy is verifiable: rpa2src verify compiles the project with the same SDK version and compares the AST with the original.
  • Games with their own encryption — injection mode: rpa2src drops a small, readable .rpy into the game and launches it; the game hands over its decrypted scripts and files through its own loader. Decompilation still happens in the offline decompiler. The game is only launched on an explicit flag and after confirmation.

What it's for

Translation and localization, mods, recovering your own lost sources, research and preservation. Respect the licenses and rights of game authors.

License

MIT — see LICENSE.

Metadata

Release files for rpa2src 1.0.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpa2src 1.0.0rc1
File Size Uploaded Provenance Actions
rpa2src-1.0.0rc1.tar.gz 414.5 kB With provenance Details for rpa2src-1.0.0rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rpa2src 1.0.0rc1
File Interpreter ABI Platform Actions
rpa2src-1.0.0rc1-py3-none-any.whl Python 3 none any Details for rpa2src-1.0.0rc1-py3-none-any.whl

Total release size: 607.6 kB

Release files / rpa2src-1.0.0rc1.tar.gz

Download URL rpa2src-1.0.0rc1.tar.gz
Size 414.5 kB
Tags Source
SHA-256 checksum
How to use checksums
85543f8609ed0b2a1f986beda2acc481bbfb1721395a50204e13c7a527594f30
BLAKE2b-256 checksum
How to use checksums
029fab62699ff2b4d2470d83883b785d654a825a0d573130612e873d0dc8de45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / rpa2src-1.0.0rc1-py3-none-any.whl

Download URL rpa2src-1.0.0rc1-py3-none-any.whl
Size 193.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf994b9c24d8f7c898645bdddcb90bd9c9dfb73f50c33b7b3326a013f65a06c2
BLAKE2b-256 checksum
How to use checksums
94661319b927d57295a1846d565cdecf7025419e0c0c8ac4dda71aeab87c7ad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for rpa2src 1.0.0rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for rpa2src-1.0.0rc1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page