pymud 0.21.2.post1__tar.gz → 0.21.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.
- {pymud-0.21.2.post1 → pymud-0.21.3}/PKG-INFO +7 -2
- {pymud-0.21.2.post1 → pymud-0.21.3}/README.md +6 -1
- {pymud-0.21.2.post1 → pymud-0.21.3}/pyproject.toml +1 -1
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/extras.py +1 -1
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/objects.py +7 -5
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/session.py +8 -2
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/PKG-INFO +7 -2
- {pymud-0.21.2.post1 → pymud-0.21.3}/LICENSE.txt +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/setup.cfg +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/__init__.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/__main__.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/decorators.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/dialogs.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/i18n.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/lang/i18n_chs.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/lang/i18n_eng.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/logger.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/main.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/modules.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/pkuxkx.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/protocol.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/pymud.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud/settings.py +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/SOURCES.txt +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/dependency_links.txt +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/entry_points.txt +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/requires.txt +0 -0
- {pymud-0.21.2.post1 → pymud-0.21.3}/src/pymud.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pymud
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.3
|
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>
|
@@ -66,12 +66,17 @@ Dynamic: license-file
|
|
66
66
|
|
67
67
|
## 版本更新信息
|
68
68
|
|
69
|
+
### 0.21.3 (2025-06-02)
|
70
|
+
|
71
|
+
+ 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
72
|
+
+ 功能增强: 增加清除任务时的异常保护,此时产生asyncio.CancelledError异常为正常现象,因此捕获后禁止异常处理。
|
73
|
+
+ 功能增强: 对reset进行了异常提示保护,此时产生异常(大部分为asyncio.CancelledError)为正常现象,因此捕获后禁止异常处理。
|
74
|
+
|
69
75
|
### 0.21.2 (2025-06-01)
|
70
76
|
|
71
77
|
+ 问题修复: 修复了当自动重连启动时,即使会话关闭了,也会自动重连的问题。
|
72
78
|
+ 实现调整: 重写了专用的会话缓冲、记录缓冲与PyMud缓冲显示控制器,在prompt_toolkit的原Buffer和BufferControl的基础仅提供了PYMUD所需的基础功能,以降低内存占用。
|
73
79
|
经测试,当前内存基本稳定,视会话数量和脚本情况差异,维持在几百兆左右(500M以下),且不会有大幅波动。重写后,低配置的VPS也可以稳定运行PyMUD。
|
74
|
-
+ post1: 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
75
80
|
|
76
81
|
### 0.21.0 (2025-05-20)
|
77
82
|
|
@@ -34,12 +34,17 @@
|
|
34
34
|
|
35
35
|
## 版本更新信息
|
36
36
|
|
37
|
+
### 0.21.3 (2025-06-02)
|
38
|
+
|
39
|
+
+ 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
40
|
+
+ 功能增强: 增加清除任务时的异常保护,此时产生asyncio.CancelledError异常为正常现象,因此捕获后禁止异常处理。
|
41
|
+
+ 功能增强: 对reset进行了异常提示保护,此时产生异常(大部分为asyncio.CancelledError)为正常现象,因此捕获后禁止异常处理。
|
42
|
+
|
37
43
|
### 0.21.2 (2025-06-01)
|
38
44
|
|
39
45
|
+ 问题修复: 修复了当自动重连启动时,即使会话关闭了,也会自动重连的问题。
|
40
46
|
+ 实现调整: 重写了专用的会话缓冲、记录缓冲与PyMud缓冲显示控制器,在prompt_toolkit的原Buffer和BufferControl的基础仅提供了PYMUD所需的基础功能,以降低内存占用。
|
41
47
|
经测试,当前内存基本稳定,视会话数量和脚本情况差异,维持在几百兆左右(500M以下),且不会有大幅波动。重写后,低配置的VPS也可以稳定运行PyMUD。
|
42
|
-
+ post1: 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
43
48
|
|
44
49
|
### 0.21.0 (2025-05-20)
|
45
50
|
|
@@ -720,7 +720,7 @@ class PyMudBufferControl(UIControl):
|
|
720
720
|
# Default reset. (Doesn't have to be implemented.)
|
721
721
|
pass
|
722
722
|
|
723
|
-
def preferred_width(self, max_available_width: int) -> int
|
723
|
+
def preferred_width(self, max_available_width: int) -> Optional[int]:
|
724
724
|
return None
|
725
725
|
|
726
726
|
def is_focusable(self) -> bool:
|
@@ -793,12 +793,14 @@ class Command(MatchObject):
|
|
793
793
|
"""
|
794
794
|
复位命令,并取消和清除所有本对象管理的任务。
|
795
795
|
"""
|
796
|
+
try:
|
797
|
+
super().reset()
|
796
798
|
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
799
|
+
for task in list(self._tasks):
|
800
|
+
if isinstance(task, asyncio.Task) and (not task.done()):
|
801
|
+
self.remove_task(task)
|
802
|
+
except:
|
803
|
+
pass
|
802
804
|
|
803
805
|
async def execute(self, cmd, *args, **kwargs) -> Any:
|
804
806
|
"""
|
@@ -736,8 +736,14 @@ class Session:
|
|
736
736
|
:param task: 由本会话管理的一个 asyncio.Task 对象
|
737
737
|
:param msg: 本意是用来反馈 task.cancel() 时的消息,但为了保持兼容低版本Python环境,该参数并未使用。
|
738
738
|
"""
|
739
|
-
|
740
|
-
|
739
|
+
|
740
|
+
result = True
|
741
|
+
try:
|
742
|
+
result = task.cancel()
|
743
|
+
self._tasks.discard(task)
|
744
|
+
|
745
|
+
except asyncio.CancelledError:
|
746
|
+
pass
|
741
747
|
|
742
748
|
return result
|
743
749
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: pymud
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.3
|
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>
|
@@ -66,12 +66,17 @@ Dynamic: license-file
|
|
66
66
|
|
67
67
|
## 版本更新信息
|
68
68
|
|
69
|
+
### 0.21.3 (2025-06-02)
|
70
|
+
|
71
|
+
+ 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
72
|
+
+ 功能增强: 增加清除任务时的异常保护,此时产生asyncio.CancelledError异常为正常现象,因此捕获后禁止异常处理。
|
73
|
+
+ 功能增强: 对reset进行了异常提示保护,此时产生异常(大部分为asyncio.CancelledError)为正常现象,因此捕获后禁止异常处理。
|
74
|
+
|
69
75
|
### 0.21.2 (2025-06-01)
|
70
76
|
|
71
77
|
+ 问题修复: 修复了当自动重连启动时,即使会话关闭了,也会自动重连的问题。
|
72
78
|
+ 实现调整: 重写了专用的会话缓冲、记录缓冲与PyMud缓冲显示控制器,在prompt_toolkit的原Buffer和BufferControl的基础仅提供了PYMUD所需的基础功能,以降低内存占用。
|
73
79
|
经测试,当前内存基本稳定,视会话数量和脚本情况差异,维持在几百兆左右(500M以下),且不会有大幅波动。重写后,低配置的VPS也可以稳定运行PyMUD。
|
74
|
-
+ post1: 问题修复: 修复了当缓存行数超过规定值时,由于代码错误导致清屏的问题。
|
75
80
|
|
76
81
|
### 0.21.0 (2025-05-20)
|
77
82
|
|
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
|
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
|