client-perf 2.1.2__tar.gz → 4.0.2__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 (39) hide show
  1. {client_perf-2.1.2/client_perf.egg-info → client_perf-4.0.2}/PKG-INFO +12 -38
  2. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/__main__.py +12 -7
  3. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/api.py +1099 -1099
  4. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/comparison.py +248 -248
  5. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/android_tools.py +840 -847
  6. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/device_manager.py +286 -286
  7. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/harmony_tools.py +796 -796
  8. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/ios_tools.py +1242 -1220
  9. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/monitor.py +84 -84
  10. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/pc_tools.py +533 -503
  11. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/db.py +507 -507
  12. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/task_handle.py +136 -136
  13. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/util.py +128 -128
  14. {client_perf-2.1.2 → client_perf-4.0.2/client_perf.egg-info}/PKG-INFO +12 -38
  15. client_perf-4.0.2/client_perf.egg-info/SOURCES.txt +31 -0
  16. client_perf-4.0.2/client_perf.egg-info/entry_points.txt +2 -0
  17. client_perf-4.0.2/client_perf.egg-info/top_level.txt +1 -0
  18. {client_perf-2.1.2 → client_perf-4.0.2}/setup.py +3 -3
  19. client_perf-4.0.2/tool/PresentMon-1.8.0-x64.exe +0 -0
  20. client_perf-4.0.2/tool/PresentMon-1.8.0-x86.exe +0 -0
  21. client_perf-2.1.2/client_perf.egg-info/SOURCES.txt +0 -32
  22. client_perf-2.1.2/client_perf.egg-info/entry_points.txt +0 -2
  23. client_perf-2.1.2/client_perf.egg-info/requires.txt +0 -13
  24. client_perf-2.1.2/client_perf.egg-info/top_level.txt +0 -1
  25. client_perf-2.1.2/pyproject.toml +0 -37
  26. client_perf-2.1.2/tool/PresentMon.exe +0 -0
  27. {client_perf-2.1.2 → client_perf-4.0.2}/LICENSE +0 -0
  28. {client_perf-2.1.2 → client_perf-4.0.2}/MANIFEST.in +0 -0
  29. {client_perf-2.1.2 → client_perf-4.0.2}/README.md +0 -0
  30. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/__init__.py +0 -0
  31. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/core/__init__.py +0 -0
  32. {client_perf-2.1.2/app → client_perf-4.0.2/client_perf}/log.py +0 -0
  33. {client_perf-2.1.2 → client_perf-4.0.2}/client_perf.egg-info/dependency_links.txt +0 -0
  34. {client_perf-2.1.2 → client_perf-4.0.2}/setup.cfg +0 -0
  35. {client_perf-2.1.2 → client_perf-4.0.2}/test_result/index.html +0 -0
  36. {client_perf-2.1.2 → client_perf-4.0.2}/tool/go-ios-bin/go-ios-linux/ios-amd64 +0 -0
  37. {client_perf-2.1.2 → client_perf-4.0.2}/tool/go-ios-bin/go-ios-linux/ios-arm64 +0 -0
  38. {client_perf-2.1.2 → client_perf-4.0.2}/tool/go-ios-bin/go-ios-mac/ios +0 -0
  39. {client_perf-2.1.2 → client_perf-4.0.2}/tool/go-ios-bin/go-ios-win/ios.exe +0 -0
@@ -1,51 +1,25 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: client-perf
3
- Version: 2.1.2
3
+ Version: 4.0.2
4
4
  Summary: 客户端性能采集与分析工具
5
5
  Home-page: https://github.com/15525730080/client_perf
6
6
  Author: fanbozhou
7
- Author-email: fanbozhou <15525730080@163.com>
8
- License: MIT License
9
-
10
- Copyright (c) 2026 client-perf
11
-
12
- Permission is hereby granted, free of charge, to any person obtaining a copy
13
- of this software and associated documentation files (the "Software"), to deal
14
- in the Software without restriction, including without limitation the rights
15
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
16
- copies of the Software, and to permit persons to whom the Software is
17
- furnished to do so, subject to the following conditions:
18
-
19
- The above copyright notice and this permission notice shall be included in all
20
- copies or substantial portions of the Software.
21
-
22
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
28
- SOFTWARE.
29
-
7
+ Author-email: 15525730080@163.com
30
8
  Classifier: Programming Language :: Python :: 3
31
9
  Classifier: License :: OSI Approved :: MIT License
32
10
  Classifier: Operating System :: OS Independent
33
11
  Requires-Python: >=3.7
34
12
  Description-Content-Type: text/markdown
35
13
  License-File: LICENSE
36
- Requires-Dist: fastapi>=0.111.0
37
- Requires-Dist: uvicorn[standard]>=0.29.0
38
- Requires-Dist: sqlalchemy[asyncio]>=2.0.0
39
- Requires-Dist: aiosqlite>=0.20.0
40
- Requires-Dist: py-ios-device>=2.0.0
41
- Requires-Dist: adbutils>=2.8.0
42
- Requires-Dist: psutil>=5.9.0
43
- Requires-Dist: pynvml>=11.5.0
44
- Requires-Dist: openpyxl>=3.1.0
45
- Requires-Dist: apscheduler>=3.10.0
46
- Requires-Dist: Pillow>=10.0.0
47
- Requires-Dist: pydantic
48
- Requires-Dist: pandas
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: classifier
17
+ Dynamic: description
18
+ Dynamic: description-content-type
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+ Dynamic: requires-python
22
+ Dynamic: summary
49
23
 
50
24
  # client-perf
51
25
 
@@ -7,14 +7,15 @@ client-perf 启动入口
7
7
  每个采集任务在独立子进程(TaskHandle/Process)中运行,互相隔离。
8
8
 
9
9
  用法:
10
- python -m app # 默认 0.0.0.0:8080
11
- python -m app --port 9090
12
- python -m app --reload # 开发模式
10
+ python -m client_perf # 默认 0.0.0.0:8080
11
+ python -m client_perf --port 9090
12
+ python -m client_perf --reload # 开发模式
13
+ client-perf # 安装后直接使用
13
14
  """
14
15
  import argparse
15
16
  import uvicorn
16
17
 
17
- from app.api import app # noqa: F401 — 供 uvicorn app.api:app 使用
18
+ from client_perf.api import app # noqa: F401 — 供 uvicorn app.api:app 使用
18
19
 
19
20
 
20
21
  def main():
@@ -22,17 +23,21 @@ def main():
22
23
  parser.add_argument("--host", default="0.0.0.0", help="监听地址")
23
24
  parser.add_argument("--port", type=int, default=8080, help="监听端口")
24
25
  parser.add_argument("--reload", action="store_true", help="开发模式热重载")
26
+ parser.add_argument("--no-elevate", action="store_true", help="不自动请求管理员权限")
25
27
  args = parser.parse_args()
26
28
 
29
+ import uvicorn
30
+ from client_perf.api import app # noqa: F401
31
+
27
32
  uvicorn.run(
28
- "app.api:app",
33
+ "client_perf.api:app",
29
34
  host=args.host,
30
35
  port=args.port,
31
- workers=1, # 服务单进程,并发由 asyncio 负责
36
+ workers=1,
32
37
  reload=args.reload,
33
38
  log_level="info",
34
39
  )
35
40
 
36
41
 
37
42
  if __name__ == "__main__":
38
- main()
43
+ main()