sdev 0.4.2__tar.gz → 0.4.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.4
2
2
  Name: sdev
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: 串口控制器工具包
5
5
  Home-page: https://github.com/klrc/sdev
6
6
  Author: klrc
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sdev"
7
- version = "0.4.2"
7
+ version = "0.4.3"
8
8
  description = "串口控制器工具包"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -14,7 +14,7 @@ from typing import Literal
14
14
  from .core import SerialDevice
15
15
  from .class_wrapper import Demoboard, Relay
16
16
 
17
- __version__ = "0.4.2"
17
+ __version__ = "0.4.3"
18
18
  __author__ = "klrc"
19
19
  __email__ = "1440698245@qq.com"
20
20
 
@@ -25,6 +25,10 @@ class Demoboard(SerialDevice):
25
25
  super().__init__(*args, **kwargs)
26
26
  self.check_alive()
27
27
 
28
+ def execute_command(self, cmd, flag, timeout=None, stream=False):
29
+ """alias for shell"""
30
+ return self.shell(cmd, prompt_flag=flag, timeout=timeout, stream=stream)
31
+
28
32
  def shell(
29
33
  self,
30
34
  cmd: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sdev
3
- Version: 0.4.2
3
+ Version: 0.4.3
4
4
  Summary: 串口控制器工具包
5
5
  Home-page: https://github.com/klrc/sdev
6
6
  Author: klrc
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="sdev",
8
- version="0.4.2",
8
+ version="0.4.3",
9
9
  author="klrc",
10
10
  author_email="144069824@qq.com",
11
11
  description="串口控制器工具包",
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