pymud 0.20.4__py3-none-any.whl → 0.21.0a1__py3-none-any.whl
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.
- pymud/__init__.py +6 -2
- pymud/dialogs.py +21 -21
- pymud/extras.py +0 -104
- pymud/i18n.py +42 -0
- pymud/lang/i18n_chs.py +205 -0
- pymud/lang/i18n_eng.py +43 -0
- pymud/main.py +107 -42
- pymud/modules.py +169 -10
- pymud/objects.py +6 -6
- pymud/pkuxkx.py +44 -133
- pymud/pymud.py +64 -53
- pymud/session.py +185 -176
- pymud/settings.py +10 -2
- {pymud-0.20.4.dist-info → pymud-0.21.0a1.dist-info}/METADATA +13 -2
- pymud-0.21.0a1.dist-info/RECORD +22 -0
- {pymud-0.20.4.dist-info → pymud-0.21.0a1.dist-info}/WHEEL +1 -1
- pymud-0.20.4.dist-info/RECORD +0 -19
- {pymud-0.20.4.dist-info → pymud-0.21.0a1.dist-info}/entry_points.txt +0 -0
- {pymud-0.20.4.dist-info → pymud-0.21.0a1.dist-info}/licenses/LICENSE.txt +0 -0
- {pymud-0.20.4.dist-info → pymud-0.21.0a1.dist-info}/top_level.txt +0 -0
pymud/settings.py
CHANGED
@@ -11,9 +11,9 @@ class Settings:
|
|
11
11
|
"APP 名称, 默认PYMUD"
|
12
12
|
__appdesc__ = "a MUD client written in Python"
|
13
13
|
"APP 简要描述"
|
14
|
-
__version__ = "0.
|
14
|
+
__version__ = "0.21.0a1"
|
15
15
|
"APP 当前版本"
|
16
|
-
__release__ = "2025-
|
16
|
+
__release__ = "2025-05-15"
|
17
17
|
"APP 当前版本发布日期"
|
18
18
|
__author__ = "本牛(newstart)@北侠"
|
19
19
|
"APP 作者"
|
@@ -22,6 +22,8 @@ class Settings:
|
|
22
22
|
__website__ = "https://pymud.readthedocs.io/"
|
23
23
|
"帮助文档发布网址"
|
24
24
|
|
25
|
+
language = "chs"
|
26
|
+
|
25
27
|
server = {
|
26
28
|
"default_encoding" : "utf-8", # 服务器默认编码
|
27
29
|
"encoding_errors" : "ignore", # 默认编码转换失效时错误处理
|
@@ -181,3 +183,9 @@ class Settings:
|
|
181
183
|
ERR_STYLE = "\x1b[48;5;160m\x1b[38;5;252m"
|
182
184
|
CLR_STYLE = "\x1b[0m"
|
183
185
|
|
186
|
+
@classmethod
|
187
|
+
def gettext(cls, text: str):
|
188
|
+
return cls.text[text] if text in cls.text else text
|
189
|
+
@classmethod
|
190
|
+
def gettext(self, text: str, *args, **kwargs):
|
191
|
+
return self.text[text].format(*args, **kwargs) if text in self.text else text.format(*args, **kwargs)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pymud
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.21.0a1
|
4
4
|
Summary: a MUD Client written in Python
|
5
5
|
Author-email: "newstart@pkuxkx" <crapex@hotmail.com>
|
6
6
|
Maintainer-email: "newstart@pkuxkx" <crapex@hotmail.com>
|
@@ -10,7 +10,7 @@ Project-URL: Bug Reports, https://github.com/crapex/pymud/issues
|
|
10
10
|
Project-URL: Source, https://github.com/crapex/pymud/
|
11
11
|
Project-URL: document, https://pymud.readthedocs.io/
|
12
12
|
Keywords: MUD,multi-user dungeon,client
|
13
|
-
Classifier: Development Status ::
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
14
14
|
Classifier: Intended Audience :: End Users/Desktop
|
15
15
|
Classifier: Topic :: Games/Entertainment :: Multi-User Dungeons (MUD)
|
16
16
|
Classifier: Programming Language :: Python :: 3
|
@@ -28,6 +28,11 @@ Requires-Dist: wcwidth
|
|
28
28
|
Requires-Dist: pyperclip
|
29
29
|
Requires-Dist: pygments
|
30
30
|
Requires-Dist: prompt-toolkit
|
31
|
+
Requires-Dist: recommonmark>=0.7.1
|
32
|
+
Requires-Dist: sphinx>=5.3.0
|
33
|
+
Requires-Dist: sphinx-markdown-tables>=0.0.17
|
34
|
+
Requires-Dist: sphinx-rtd-theme>=2.0.0
|
35
|
+
Requires-Dist: piccolo-theme>=0.24.0
|
31
36
|
Dynamic: license-file
|
32
37
|
|
33
38
|
# PyMUD - Python原生MUD客户端
|
@@ -63,6 +68,12 @@ Dynamic: license-file
|
|
63
68
|
|
64
69
|
## 版本更新信息
|
65
70
|
|
71
|
+
### 0.21.0a1 (2025-05-15)
|
72
|
+
+ 功能新增: 增加了国际化(i18n)支持,支持中文简体和英文。目前完全支持的仅中文简体,英文只完成了界面翻译,运行时的#help帮助内容暂未翻译。
|
73
|
+
+ 功能新增: 新增了使用元类型及装饰器来管理Pymud对象,包括Alias, Trigger, Timer, GMCPTrigger四种可以使用对应的装饰器,@alias, @trigger, @timer, @gmcp来直接在标记函数上创建。可以参考本版本中的pkuxkx.py文件写法
|
74
|
+
+ 问题修复: 之前对Alias和Command未进行优先级判断,因此遇到能同时匹配的多个时,不一定优先级高的被触发。现在对Alias和Command进行了优先级判断,优先级高的先触发。
|
75
|
+
+ 问题修复: 之前的Alias中的keepEval参数和oneShot参数不起作用,已修复。keepEval参数支持多个匹配成功的别名同时生效,oneShot参数支持一个匹配成功的别名生效后,后续的匹配不再生效。
|
76
|
+
|
66
77
|
### 0.20.4 (2025-03-30)
|
67
78
|
+ 功能调整: 为插件功能新增了 PLUGIN_PYMUD_DESTROY 方法,用于在插件被卸载时,进行一些清理工作。
|
68
79
|
+ 功能调整: 将插件的 PLUGIN_PYMUD_START 方法的调用,从插件加载时刻移动到事件循环启动之后,这样在加载时,可以使用 asyncio.create_task或 asyncio.ensure_future 来执行一些异步操作
|
@@ -0,0 +1,22 @@
|
|
1
|
+
pymud/__init__.py,sha256=bymGU_Q7MhQhF5S8S-zvgvNXBposglLrRAHvCFJNhSY,694
|
2
|
+
pymud/__main__.py,sha256=lIOBiJmi8X-EWXVIx_OoxSgUZ0FYKlZI8hXVnLUYTJQ,61
|
3
|
+
pymud/dialogs.py,sha256=Qche1cRDA3rVrxV5yo6wIVosWgNpTa1Di58ELEIKpp0,6749
|
4
|
+
pymud/extras.py,sha256=V2F_8jLIKD6woGMx9rhhygCj2_Drvi4D6BD0nw3eEZI,35109
|
5
|
+
pymud/i18n.py,sha256=mm68bajqQJNkzj_joqazFlg7G3dHTCy-cEqY9uC4bDw,1873
|
6
|
+
pymud/logger.py,sha256=-3k3yEmCyT0SoucFmDyJz9wUT5NsgcWqeCU5JHKcAas,5627
|
7
|
+
pymud/main.py,sha256=0sSPzeqJq6hEf7pyjZW9n67aq7r1JjbKI8J9ET8B7qY,9759
|
8
|
+
pymud/modules.py,sha256=wmjxH-f08rQziTEhPyHQwsW7A1RYKeA-7kE3GSfcIqA,16315
|
9
|
+
pymud/objects.py,sha256=gNNR_TKcv1mxlho-vm_OhqUzJaymYc63Zc50zO9DyBU,38382
|
10
|
+
pymud/pkuxkx.py,sha256=DKVAegMDSB2FFFLcIhz8Rh9_HXdzfxCXMdeBu3JgAKY,3909
|
11
|
+
pymud/protocol.py,sha256=AgZoL-b11xCuR1LmYaf1LneFeiLs_UKHOTj9ox7Ynk0,48110
|
12
|
+
pymud/pymud.py,sha256=ro2d5c0lEHwkZYMawnB9pDQiWkGXwmLYw69pUmtC9R4,53646
|
13
|
+
pymud/session.py,sha256=obwTiCpLwtIC2rfkympunpak9NIghGgnnX9MCE1iXUQ,137468
|
14
|
+
pymud/settings.py,sha256=NvTGXGbVeSWj2qVRtrJhgQoViNf0V4mn3QMZ2xJ8jIE,7481
|
15
|
+
pymud/lang/i18n_chs.py,sha256=RnyPolSKTo6HTLxcqXAKnNVpbkcBM1U3U-v4FuPnopY,15697
|
16
|
+
pymud/lang/i18n_eng.py,sha256=C8-SONBoGbOsz-GidIW4QNZDIsb4bGSHqyAoBwI3kbE,3858
|
17
|
+
pymud-0.21.0a1.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
18
|
+
pymud-0.21.0a1.dist-info/METADATA,sha256=HXL__yNB32CO2aQmdBtlU950hIcBJ0jjLN2zFoPbqLw,35897
|
19
|
+
pymud-0.21.0a1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
20
|
+
pymud-0.21.0a1.dist-info/entry_points.txt,sha256=diPUOtTkhgC1hVny7Cdg4aRhaHSynMQoraE7ZhJxUcw,37
|
21
|
+
pymud-0.21.0a1.dist-info/top_level.txt,sha256=8Gp1eXjxixXjqhhti6tLCspV_8s9sNV3z5Em2_KRhD4,6
|
22
|
+
pymud-0.21.0a1.dist-info/RECORD,,
|
pymud-0.20.4.dist-info/RECORD
DELETED
@@ -1,19 +0,0 @@
|
|
1
|
-
pymud/__init__.py,sha256=MgErJ9_p1i0frMOx_cV8PynLViM_EucNdkt9-VUIKEA,563
|
2
|
-
pymud/__main__.py,sha256=lIOBiJmi8X-EWXVIx_OoxSgUZ0FYKlZI8hXVnLUYTJQ,61
|
3
|
-
pymud/dialogs.py,sha256=OtEmBbCKvYKVhTPnAr_88nxOEZ6MhdLXscv2QxSGF0M,6566
|
4
|
-
pymud/extras.py,sha256=qzSA6-XTCa0aK-XEUFhAOATBaIsVjVwmYdHQe-Oo-fI,39909
|
5
|
-
pymud/logger.py,sha256=-3k3yEmCyT0SoucFmDyJz9wUT5NsgcWqeCU5JHKcAas,5627
|
6
|
-
pymud/main.py,sha256=XHS9wdD7VX9mKsRVAow1Gxaq5ADIB1s63I2JHVk4z4E,6393
|
7
|
-
pymud/modules.py,sha256=M2kPYebVs5fICFbJ_DtEQ-67nPKchgWaSNJ_9PQbY4o,8399
|
8
|
-
pymud/objects.py,sha256=5XVj80afhzEXY7XpWWZM5WEE96R5FHRCXBRHSHcyuDs,38429
|
9
|
-
pymud/pkuxkx.py,sha256=D8nZPVMg9Nn2EWz5VdrOHH3JXgSDz9XSM61CjJ8IpSM,11311
|
10
|
-
pymud/protocol.py,sha256=AgZoL-b11xCuR1LmYaf1LneFeiLs_UKHOTj9ox7Ynk0,48110
|
11
|
-
pymud/pymud.py,sha256=dfnFyDqSbmXT9Xl-uW7WSyqKQDbR1bUiCAPCSTRzpno,52528
|
12
|
-
pymud/session.py,sha256=qGEyHnCoPcpoFFcvQ7gtLGf1gPK-dNoIJqVQfHSgZZ0,135649
|
13
|
-
pymud/settings.py,sha256=gQSou2bci9iR6acxmnYOBqMlwFp5kFc0zyejZR5j5wc,7169
|
14
|
-
pymud-0.20.4.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
15
|
-
pymud-0.20.4.dist-info/METADATA,sha256=X9lm7uP0sQ7sdRicJImx6Cr_VVywwnXKUeO7vNGXAwY,34760
|
16
|
-
pymud-0.20.4.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
17
|
-
pymud-0.20.4.dist-info/entry_points.txt,sha256=diPUOtTkhgC1hVny7Cdg4aRhaHSynMQoraE7ZhJxUcw,37
|
18
|
-
pymud-0.20.4.dist-info/top_level.txt,sha256=8Gp1eXjxixXjqhhti6tLCspV_8s9sNV3z5Em2_KRhD4,6
|
19
|
-
pymud-0.20.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|