re1sid-lib
A small Python library for working with ReVanced CLI and patch bundles. It provides helpers to download required ReVanced assets and to patch APK files programmatically.
Features
- Download the latest ReVanced CLI jar and patches.rvp bundle.
- List available patches and options using ReVanced CLI output parsing.
- Patch APK files with enabled/disabled patches and patch options.
- Preserve multi-line descriptions and compatibility metadata.
Requirements
- Python 3.9+
- Java runtime installed and available in
PATH - Python packages:
httpxlxmlpyaxmlparsertextual
Installation
pip install re1sid-lib
Usage
Download ReVanced assets
Use the downloader helper to fetch the latest CLI jar and patches bundle.
from re1sid_lib import Downloader
downloader = Downloader()
downloader.download_all()
Or download individual assets:
from re1sid_lib import Downloader
downloader = Downloader()
downloader.download_cli()
downloader.download_patches_rvp()
List patches
Use the patcher helper to parse the patch list and inspect options.
from re1sid_lib import Patcher
patcher = Patcher()
patches = patcher.list_patches(package_name="com.spotify.music")
for patch in patches:
print(patch["Name"], patch["Enabled"])
Patch an APK
Patch an APK file with specific enabled/disabled patches and options.
from re1sid_lib import Patcher
patcher = Patcher()
output = patcher.patch_apk(
apk_path="input.apk",
output_path="patched.apk",
enabled_patches=["remove-ads", 12],
disabled_patches=["log-timestamp"],
options={"theme": "dark", "ads": False},
exclusive=False,
force=True,
bypass_verification=True,
purge=True,
)
print(output)
Patch an APK via terminal user interface
Patch an APK file with tui via uv
uv tool run re1sid-lib
Notes
Downloader.download_all()removes the.revanced_resdirectory before downloading fresh assets.Patcher.list_patches()can also accept an APK path and will read its package name automatically.- The library expects the ReVanced CLI jar and patches bundle to exist at the configured paths.
License
Use this project according to the appropriate license terms for ReVanced and its dependencies.
Metadata
Release files for re1sid-lib 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| re1sid_lib-0.2.3.tar.gz | 11.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| re1sid_lib-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / re1sid_lib-0.2.3.tar.gz
| Download URL | re1sid_lib-0.2.3.tar.gz |
|---|---|
| Size | 11.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4978b71cc80e5a94962931db0b6505fa52f34f074977996991c54734a1bcb6b0
|
|
BLAKE2b-256 checksum How to use checksums |
36fe87104615dcc49a33bdb3eceb4e8468a8048521d92da796717db8c640d07b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / re1sid_lib-0.2.3-py3-none-any.whl
| Download URL | re1sid_lib-0.2.3-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
98bc7746ca4f27ed7eb4570310fa0ab4d8b3a5bb10a239a86d94631d0a6129c7
|
|
BLAKE2b-256 checksum How to use checksums |
bd238bb6d3f2acde81094588b196724853d1335ce024601a8175dd0da8cc8d43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.32 {"installer":{"name":"uv","version":"0.11.32","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|