mcsmapi 0.1.5b2__tar.gz → 0.1.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.
Files changed (28) hide show
  1. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/PKG-INFO +9 -3
  2. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/README.md +8 -2
  3. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/daemon.py +0 -26
  4. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/instance.py +1 -1
  5. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi.egg-info/PKG-INFO +9 -3
  6. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/pyproject.toml +1 -1
  7. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/LICENSE +0 -0
  8. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/__init__.py +0 -0
  9. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/__init__.py +0 -0
  10. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/file.py +0 -0
  11. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/image.py +0 -0
  12. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/overview.py +0 -0
  13. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/apis/user.py +0 -0
  14. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/exceptions.py +0 -0
  15. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/__init__.py +0 -0
  16. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/daemon.py +0 -0
  17. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/file.py +0 -0
  18. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/image.py +0 -0
  19. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/instance.py +0 -0
  20. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/overview.py +0 -0
  21. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/models/user.py +0 -0
  22. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/pool.py +0 -0
  23. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi/request.py +0 -0
  24. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi.egg-info/SOURCES.txt +0 -0
  25. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi.egg-info/dependency_links.txt +0 -0
  26. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi.egg-info/requires.txt +0 -0
  27. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/mcsmapi.egg-info/top_level.txt +0 -0
  28. {mcsmapi-0.1.5b2 → mcsmapi-0.1.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcsmapi
3
- Version: 0.1.5b2
3
+ Version: 0.1.6
4
4
  Summary: Shortcut the pypi package of MCSM./快捷操作MCSM的pypi包
5
5
  Author-email: molanp <molanpp@outlook.com>
6
6
  License-Expression: MIT
@@ -26,7 +26,13 @@ English|[Chinese Simplified](README_zh-cn.md)
26
26
 
27
27
  ## Documentation
28
28
 
29
- The documentation is not yet complete, if you need it, please visit [https://deepwiki.com/molanp/mcsmapi](https://deepwiki.com/molanp/mcsmapi)
29
+ The documentation is not yet complete, if you need it, please visit [deepwiki-mcsmapi](https://deepwiki.com/molanp/mcsmapi)
30
+
31
+ You can also find:
32
+
33
+ 📄 Work-in-progress docs: [docs](docs)
34
+
35
+ 💡 Example: [example](example)
30
36
 
31
37
  ## Introduction
32
38
 
@@ -43,7 +49,7 @@ pip install mcsmapi
43
49
  ```
44
50
 
45
51
  If you need the latest build files (untested), please visit
46
- [Actions](https://github.com/molanp/mcsmapi/actions)
52
+ [Actions](https://github.com/molanp/mcsmapi/actions/workflows/auto-build.yml)
47
53
 
48
54
  ## Supported Features
49
55
 
@@ -12,7 +12,13 @@ English|[Chinese Simplified](README_zh-cn.md)
12
12
 
13
13
  ## Documentation
14
14
 
15
- The documentation is not yet complete, if you need it, please visit [https://deepwiki.com/molanp/mcsmapi](https://deepwiki.com/molanp/mcsmapi)
15
+ The documentation is not yet complete, if you need it, please visit [deepwiki-mcsmapi](https://deepwiki.com/molanp/mcsmapi)
16
+
17
+ You can also find:
18
+
19
+ 📄 Work-in-progress docs: [docs](docs)
20
+
21
+ 💡 Example: [example](example)
16
22
 
17
23
  ## Introduction
18
24
 
@@ -29,7 +35,7 @@ pip install mcsmapi
29
35
  ```
30
36
 
31
37
  If you need the latest build files (untested), please visit
32
- [Actions](https://github.com/molanp/mcsmapi/actions)
38
+ [Actions](https://github.com/molanp/mcsmapi/actions/workflows/auto-build.yml)
33
39
 
34
40
  ## Supported Features
35
41
 
@@ -31,32 +31,6 @@ class Daemon:
31
31
  f"{ApiPool.SERVICE}/remote_services_system",
32
32
  )
33
33
  return [DaemonModel(**daemon) for daemon in daemons]
34
-
35
- def instances(self, daemonId: str, page: int = 0, page_size: int = 10, instance_name: str = "", status: int = 0, tag: list[str] | None = None) -> list[InstanceDetail]:
36
- """
37
- 查询指定节点下的实例详细信息
38
-
39
- 参数:
40
- - `daemonId` (str): 要查询的守护进程(Daemon)的唯一标识符。
41
- - `page` (int, 默认=0): 分页查询的页码(从 0 开始)。
42
- - `page_size` (int, 默认=10): 每页返回的实例数量。
43
- - `instance_name` (str, 默认=""): 过滤指定名称的实例。
44
- - `status` (int, 默认=0): 过滤指定状态的实例,如运行中、已停止等。
45
- - `tag` (List[str] | None, 默认=None): 根据标签筛选实例(可选参数)。
46
-
47
- 返回:
48
- - `List[InstanceDetail]`: 包含实例详细信息的列表。
49
-
50
- 注意:
51
- - 此方法尚未实现 (`raise RuntimeError`),因为 MCSM 官方文档未提供足够的信息。
52
- - 由于根据 MCSM 源代码的测试无法获取有效数据,目前无法完成该功能的开发。
53
- - 如果你有具体的实现思路,请在 issue 中提出
54
- - 可供参考 MCSM 源码: [daemon_router.ts 第 32 行](https://github.com/MCSManager/MCSManager/blob/master/panel%2Fsrc%2Fapp%2Frouters%2Fdaemon_router.ts#L32-L32)
55
- - 模型定义代码: https://github.com/MCSManager/MCSManager/blob/master/frontend%2Fsrc%2Fservices%2Fapis%2Findex.ts#L86-L86
56
- - 测试地址示例:
57
- `http://localhost:23333/api/service/remote_service_instances?apikey=xxx&daemonId=xxx&page=0&page_size=10&status=3&instance_name=`
58
- """
59
- raise RuntimeError("此方法尚未实现")
60
34
 
61
35
  def add(self, config: dict[str, Any]) -> str:
62
36
  """
@@ -229,7 +229,7 @@ class Instance:
229
229
  - bool: 返回操作结果,成功时返回True。
230
230
  """
231
231
  return send(
232
- "GET",
232
+ "POST",
233
233
  f"{ApiPool.PROTECTED_INSTANCE}/asynchronous",
234
234
  params={"daemonId": daemonId, "uuid": uuid, "task_name": "update"},
235
235
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mcsmapi
3
- Version: 0.1.5b2
3
+ Version: 0.1.6
4
4
  Summary: Shortcut the pypi package of MCSM./快捷操作MCSM的pypi包
5
5
  Author-email: molanp <molanpp@outlook.com>
6
6
  License-Expression: MIT
@@ -26,7 +26,13 @@ English|[Chinese Simplified](README_zh-cn.md)
26
26
 
27
27
  ## Documentation
28
28
 
29
- The documentation is not yet complete, if you need it, please visit [https://deepwiki.com/molanp/mcsmapi](https://deepwiki.com/molanp/mcsmapi)
29
+ The documentation is not yet complete, if you need it, please visit [deepwiki-mcsmapi](https://deepwiki.com/molanp/mcsmapi)
30
+
31
+ You can also find:
32
+
33
+ 📄 Work-in-progress docs: [docs](docs)
34
+
35
+ 💡 Example: [example](example)
30
36
 
31
37
  ## Introduction
32
38
 
@@ -43,7 +49,7 @@ pip install mcsmapi
43
49
  ```
44
50
 
45
51
  If you need the latest build files (untested), please visit
46
- [Actions](https://github.com/molanp/mcsmapi/actions)
52
+ [Actions](https://github.com/molanp/mcsmapi/actions/workflows/auto-build.yml)
47
53
 
48
54
  ## Supported Features
49
55
 
@@ -4,7 +4,7 @@ requires = ["setuptools", "wheel"]
4
4
 
5
5
  [project]
6
6
  name = "mcsmapi"
7
- version = "0.1.5.b2"
7
+ version = "0.1.6"
8
8
  description = "Shortcut the pypi package of MCSM./快捷操作MCSM的pypi包"
9
9
  readme = "README.md"
10
10
  authors = [
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