dfpyre 0.7.4__tar.gz → 0.7.6__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.
Potentially problematic release.
This version of dfpyre might be problematic. Click here for more details.
- {dfpyre-0.7.4 → dfpyre-0.7.6}/PKG-INFO +2 -2
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/pyre.py +5 -14
- {dfpyre-0.7.4 → dfpyre-0.7.6}/pyproject.toml +2 -2
- {dfpyre-0.7.4 → dfpyre-0.7.6}/LICENSE +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/README.md +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/__init__.py +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/actiondump.py +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/data/actiondump_min.json +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/items.py +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/scriptgen.py +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/style.py +0 -0
- {dfpyre-0.7.4 → dfpyre-0.7.6}/dfpyre/util.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: dfpyre
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.6
|
|
4
4
|
Summary: A package for creating and modifying code templates for the DiamondFire Minecraft server.
|
|
5
5
|
Home-page: https://github.com/Amp63/pyre
|
|
6
6
|
License: MIT
|
|
@@ -12,7 +12,7 @@ Classifier: Programming Language :: Python :: 3
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
-
Requires-Dist: mcitemlib (>=0.3.
|
|
15
|
+
Requires-Dist: mcitemlib (>=0.3.1,<0.4.0)
|
|
16
16
|
Project-URL: Repository, https://github.com/Amp63/pyre
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
@@ -55,10 +55,10 @@ class CodeBlock:
|
|
|
55
55
|
self.tags = tags
|
|
56
56
|
|
|
57
57
|
def __repr__(self) -> str:
|
|
58
|
-
if self.name
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return
|
|
58
|
+
if self.name == 'dynamic':
|
|
59
|
+
return f'CodeBlock({self.data["block"]}, {self.data["data"]})'
|
|
60
|
+
if self.name == 'else':
|
|
61
|
+
return 'CodeBlock(else)'
|
|
62
62
|
if 'block' in self.data:
|
|
63
63
|
return f'CodeBlock({self.data["block"]}, {self.name})'
|
|
64
64
|
return f'CodeBlock(bracket, {self.data["type"]}, {self.data["direct"]})'
|
|
@@ -214,6 +214,7 @@ class DFTemplate:
|
|
|
214
214
|
"""
|
|
215
215
|
template_dict = json.loads(df_decode(template_code))
|
|
216
216
|
template = DFTemplate()
|
|
217
|
+
template._set_template_name(template_dict['blocks'][0])
|
|
217
218
|
for block_dict in template_dict['blocks']:
|
|
218
219
|
block_tags = get_default_tags(block_dict.get('block'), block_dict.get('action'))
|
|
219
220
|
if 'args' in block_dict:
|
|
@@ -244,16 +245,6 @@ class DFTemplate:
|
|
|
244
245
|
return template
|
|
245
246
|
|
|
246
247
|
|
|
247
|
-
@staticmethod
|
|
248
|
-
def receive_from_recode():
|
|
249
|
-
print('Waiting for item to be sent...')
|
|
250
|
-
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
251
|
-
s.connect(('localhost', 31372))
|
|
252
|
-
received = s.recv(8192)
|
|
253
|
-
print(received)
|
|
254
|
-
s.close()
|
|
255
|
-
|
|
256
|
-
|
|
257
248
|
def _set_template_name(self, first_block):
|
|
258
249
|
if self.name is not None:
|
|
259
250
|
return
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "dfpyre"
|
|
3
|
-
version = "0.7.
|
|
3
|
+
version = "0.7.6"
|
|
4
4
|
description = "A package for creating and modifying code templates for the DiamondFire Minecraft server."
|
|
5
5
|
authors = ["Amp"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -12,7 +12,7 @@ exclude = ['examples']
|
|
|
12
12
|
|
|
13
13
|
[tool.poetry.dependencies]
|
|
14
14
|
python = "^3.10"
|
|
15
|
-
mcitemlib = "^0.3.
|
|
15
|
+
mcitemlib = "^0.3.1"
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
[build-system]
|
|
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
|