re1sid-lib 0.1.2__tar.gz → 0.1.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: re1sid-lib
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Add your description here
5
5
  Author: 09u2h4n
6
6
  Author-email: 09u2h4n <09u2h4n.y1lm42@gmail.com>
@@ -36,18 +36,8 @@ A small Python library for working with ReVanced CLI and patch bundles. It provi
36
36
 
37
37
  ## Installation
38
38
 
39
- 1. Clone the repository.
40
- 2. Install Python dependencies:
41
-
42
39
  ```bash
43
- pip install httpx lxml pyaxmlparser
44
- ```
45
-
46
- 3. Configure paths in `src/re1sid_lib/common.py`:
47
-
48
- ```python
49
- PATCHES_PATH = ".revanced_res/patches.rvp"
50
- CLI_PATH = ".revanced_res/revanced-cli.jar"
40
+ pip install re1sid-lib
51
41
  ```
52
42
 
53
43
  ## Usage
@@ -57,7 +47,7 @@ CLI_PATH = ".revanced_res/revanced-cli.jar"
57
47
  Use the downloader helper to fetch the latest CLI jar and patches bundle.
58
48
 
59
49
  ```python
60
- from re1sid_lib.downloader import Downloader
50
+ from re1sid_lib import Downloader
61
51
 
62
52
  downloader = Downloader()
63
53
  downloader.download_all()
@@ -66,7 +56,7 @@ downloader.download_all()
66
56
  Or download individual assets:
67
57
 
68
58
  ```python
69
- from re1sid_lib.downloader import Downloader
59
+ from re1sid_lib import Downloader
70
60
 
71
61
  downloader = Downloader()
72
62
  downloader.download_cli()
@@ -78,7 +68,7 @@ downloader.download_patches_rvp()
78
68
  Use the patcher helper to parse the patch list and inspect options.
79
69
 
80
70
  ```python
81
- from re1sid_lib.patcher import Patcher
71
+ from re1sid_lib import Patcher
82
72
 
83
73
  patcher = Patcher()
84
74
  patches = patcher.list_patches(package_name="com.spotify.music")
@@ -91,7 +81,7 @@ for patch in patches:
91
81
  Patch an APK file with specific enabled/disabled patches and options.
92
82
 
93
83
  ```python
94
- from re1sid_lib.patcher import Patcher
84
+ from re1sid_lib import Patcher
95
85
 
96
86
  patcher = Patcher()
97
87
  output = patcher.patch_apk(
@@ -114,12 +104,6 @@ print(output)
114
104
  - `Patcher.list_patches()` can also accept an APK path and will read its package name automatically.
115
105
  - The library expects the ReVanced CLI jar and patches bundle to exist at the configured paths.
116
106
 
117
- ## Project structure
118
-
119
- - `src/re1sid_lib/downloader.py` - Download helper for ReVanced CLI and patches.
120
- - `src/re1sid_lib/patcher.py` - Patch helper and CLI output parser.
121
- - `src/re1sid_lib/common.py` - Common path configuration.
122
-
123
107
  ## License
124
108
 
125
109
  Use this project according to the appropriate license terms for ReVanced and its dependencies.
@@ -20,18 +20,8 @@ A small Python library for working with ReVanced CLI and patch bundles. It provi
20
20
 
21
21
  ## Installation
22
22
 
23
- 1. Clone the repository.
24
- 2. Install Python dependencies:
25
-
26
23
  ```bash
27
- pip install httpx lxml pyaxmlparser
28
- ```
29
-
30
- 3. Configure paths in `src/re1sid_lib/common.py`:
31
-
32
- ```python
33
- PATCHES_PATH = ".revanced_res/patches.rvp"
34
- CLI_PATH = ".revanced_res/revanced-cli.jar"
24
+ pip install re1sid-lib
35
25
  ```
36
26
 
37
27
  ## Usage
@@ -41,7 +31,7 @@ CLI_PATH = ".revanced_res/revanced-cli.jar"
41
31
  Use the downloader helper to fetch the latest CLI jar and patches bundle.
42
32
 
43
33
  ```python
44
- from re1sid_lib.downloader import Downloader
34
+ from re1sid_lib import Downloader
45
35
 
46
36
  downloader = Downloader()
47
37
  downloader.download_all()
@@ -50,7 +40,7 @@ downloader.download_all()
50
40
  Or download individual assets:
51
41
 
52
42
  ```python
53
- from re1sid_lib.downloader import Downloader
43
+ from re1sid_lib import Downloader
54
44
 
55
45
  downloader = Downloader()
56
46
  downloader.download_cli()
@@ -62,7 +52,7 @@ downloader.download_patches_rvp()
62
52
  Use the patcher helper to parse the patch list and inspect options.
63
53
 
64
54
  ```python
65
- from re1sid_lib.patcher import Patcher
55
+ from re1sid_lib import Patcher
66
56
 
67
57
  patcher = Patcher()
68
58
  patches = patcher.list_patches(package_name="com.spotify.music")
@@ -75,7 +65,7 @@ for patch in patches:
75
65
  Patch an APK file with specific enabled/disabled patches and options.
76
66
 
77
67
  ```python
78
- from re1sid_lib.patcher import Patcher
68
+ from re1sid_lib import Patcher
79
69
 
80
70
  patcher = Patcher()
81
71
  output = patcher.patch_apk(
@@ -98,12 +88,6 @@ print(output)
98
88
  - `Patcher.list_patches()` can also accept an APK path and will read its package name automatically.
99
89
  - The library expects the ReVanced CLI jar and patches bundle to exist at the configured paths.
100
90
 
101
- ## Project structure
102
-
103
- - `src/re1sid_lib/downloader.py` - Download helper for ReVanced CLI and patches.
104
- - `src/re1sid_lib/patcher.py` - Patch helper and CLI output parser.
105
- - `src/re1sid_lib/common.py` - Common path configuration.
106
-
107
91
  ## License
108
92
 
109
93
  Use this project according to the appropriate license terms for ReVanced and its dependencies.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "re1sid-lib"
3
- version = "0.1.2"
3
+ version = "0.1.3"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  license = { text = "Apache-2.0 license" }
@@ -0,0 +1,4 @@
1
+ from .downloader import Downloader
2
+ from .patcher import Patcher
3
+
4
+ __all__ = ["Downloader", "Patcher"]
@@ -4,7 +4,7 @@ import os
4
4
  import shutil
5
5
  from lxml import html
6
6
 
7
- from common import PATCHES_PATH, CLI_PATH
7
+ from .common import PATCHES_PATH, CLI_PATH
8
8
 
9
9
  class Downloader:
10
10
  def __init__(self) -> None:
@@ -3,7 +3,7 @@ import os
3
3
  from typing import List, Dict, Any, Union, Optional, Generator
4
4
  from pyaxmlparser import APK
5
5
 
6
- from common import PATCHES_PATH, CLI_PATH
6
+ from .common import PATCHES_PATH, CLI_PATH
7
7
 
8
8
 
9
9
  class Patcher:
@@ -1,4 +0,0 @@
1
- from downloader import Downloader
2
- from patcher import Patcher
3
-
4
- __all__ = ["Downloader", "Patcher"]