pyrecli 0.3.0__tar.gz → 0.3.2__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.
- {pyrecli-0.3.0 → pyrecli-0.3.2}/PKG-INFO +3 -3
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyproject.toml +3 -3
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/rename.py +2 -3
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/pyrecli.py +1 -1
- {pyrecli-0.3.0 → pyrecli-0.3.2}/LICENSE +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/README.md +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/__init__.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/cctoken.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/docs.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/grabinv.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/scan.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/script.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/send.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/command/slice.py +0 -0
- {pyrecli-0.3.0 → pyrecli-0.3.2}/pyrecli/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyrecli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: Command line utilities for DiamondFire templates
|
|
5
5
|
License-Expression: MIT
|
|
6
6
|
License-File: LICENSE
|
|
@@ -14,9 +14,9 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.14
|
|
16
16
|
Provides-Extra: dev
|
|
17
|
-
Requires-Dist: dfpyre (>=0.9.
|
|
17
|
+
Requires-Dist: dfpyre (>=0.9.6)
|
|
18
18
|
Requires-Dist: pytest (>=9.0.2) ; extra == "dev"
|
|
19
|
-
Requires-Dist: rapidnbt (>=1.3.
|
|
19
|
+
Requires-Dist: rapidnbt (>=1.3.5)
|
|
20
20
|
Requires-Dist: twine (>=6.2.0) ; extra == "dev"
|
|
21
21
|
Project-URL: Repository, https://github.com/Amp63/pyrecli
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pyrecli"
|
|
3
|
-
version = "0.3.
|
|
3
|
+
version = "0.3.2"
|
|
4
4
|
description = "Command line utilities for DiamondFire templates"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Amp"}
|
|
@@ -11,8 +11,8 @@ keywords = ["diamondfire", "minecraft", "template", "cli", "tools"]
|
|
|
11
11
|
|
|
12
12
|
requires-python = ">=3.10"
|
|
13
13
|
dependencies = [
|
|
14
|
-
"dfpyre>=0.9.
|
|
15
|
-
"rapidnbt>=1.3.
|
|
14
|
+
"dfpyre>=0.9.6",
|
|
15
|
+
"rapidnbt>=1.3.5"
|
|
16
16
|
]
|
|
17
17
|
|
|
18
18
|
[project.optional-dependencies]
|
|
@@ -19,7 +19,7 @@ def rename_var_in_text_code(s: str, var_to_rename: str, new_var_name: str):
|
|
|
19
19
|
return s
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
def rename_command(input_path: str, output_path: str
|
|
22
|
+
def rename_command(input_path: str, output_path: str,
|
|
23
23
|
var_to_rename: str, new_var_name: str,
|
|
24
24
|
var_to_rename_scope: Literal['game', 'saved', 'local', 'line']|None):
|
|
25
25
|
|
|
@@ -50,5 +50,4 @@ def rename_command(input_path: str, output_path: str|None,
|
|
|
50
50
|
codeblock.data['data'] = new_data
|
|
51
51
|
|
|
52
52
|
new_file_content = '\n'.join(t.build() for t in templates)
|
|
53
|
-
|
|
54
|
-
write_output_file(write_path, new_file_content)
|
|
53
|
+
write_output_file(output_path, new_file_content)
|
|
@@ -52,10 +52,10 @@ def main() -> int:
|
|
|
52
52
|
|
|
53
53
|
parser_rename = subparsers.add_parser('rename', help='Rename all occurrences of a variable')
|
|
54
54
|
parser_rename.add_argument('input_path', help='The file containing template data', type=str)
|
|
55
|
+
parser_rename.add_argument('output_path', help='The file to output to', type=str)
|
|
55
56
|
parser_rename.add_argument('var_to_rename', help='The variable to rename', type=str)
|
|
56
57
|
parser_rename.add_argument('new_var_name', help='The new name for the variable', type=str)
|
|
57
58
|
parser_rename.add_argument('--var_scope', '-s', help='The scope to match', type=rename_target_scope, default=None)
|
|
58
|
-
parser_rename.add_argument('--output_path', '-o', help='The file to output to', type=str, default=None)
|
|
59
59
|
|
|
60
60
|
parser_grabinv = subparsers.add_parser('grabinv', help='Save all templates in the inventory to a file with CodeClient')
|
|
61
61
|
parser_grabinv.add_argument('output_path', help='The file to output template data to', type=str)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|