magnax 1.0.6__py3-none-any.whl → 1.0.8__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.
- magnax/__init__.py +1 -1
- magnax/public/apm.py +5 -5
- magnax/public/apm_pk.py +3 -3
- magnax/templates/base.html +2 -0
- magnax/view/pages.py +1 -1
- magnax/web.py +8 -8
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/METADATA +1 -1
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/RECORD +12 -12
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/WHEEL +0 -0
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/entry_points.txt +0 -0
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/licenses/LICENSE +0 -0
- {magnax-1.0.6.dist-info → magnax-1.0.8.dist-info}/top_level.txt +0 -0
magnax/__init__.py
CHANGED
magnax/public/apm.py
CHANGED
|
@@ -21,10 +21,10 @@ except ImportError:
|
|
|
21
21
|
RemoteServiceDiscoveryService = None
|
|
22
22
|
logger.warning("pymobiledevice3 not available, iOS features will be limited")
|
|
23
23
|
import multiprocessing
|
|
24
|
-
from
|
|
25
|
-
from
|
|
26
|
-
from
|
|
27
|
-
from
|
|
24
|
+
from magnax.public.ios_perf_adapter import PyiOSDeviceAdapter
|
|
25
|
+
from magnax.public.adb import adb
|
|
26
|
+
from magnax.public.common import Devices, File, Method, Platform, Scrcpy
|
|
27
|
+
from magnax.public.android_fps import FPSMonitor, TimeUtils
|
|
28
28
|
|
|
29
29
|
d = Devices()
|
|
30
30
|
f = File()
|
|
@@ -543,7 +543,7 @@ class FPS(object):
|
|
|
543
543
|
|
|
544
544
|
# 从持久化的监控器获取当前FPS数据
|
|
545
545
|
# 使用全局变量,这些变量由监控器实时更新
|
|
546
|
-
from
|
|
546
|
+
from magnax.public.android_fps import collect_fps, collect_jank
|
|
547
547
|
fps = collect_fps
|
|
548
548
|
jank = collect_jank
|
|
549
549
|
|
magnax/public/apm_pk.py
CHANGED
|
@@ -2,9 +2,9 @@ import datetime
|
|
|
2
2
|
import re
|
|
3
3
|
import os
|
|
4
4
|
import time
|
|
5
|
-
from
|
|
6
|
-
from
|
|
7
|
-
from
|
|
5
|
+
from magnax.public.adb import adb
|
|
6
|
+
from magnax.public.common import Devices, File
|
|
7
|
+
from magnax.public.android_fps import FPSMonitor, TimeUtils
|
|
8
8
|
|
|
9
9
|
d = Devices()
|
|
10
10
|
f = File()
|
magnax/templates/base.html
CHANGED
|
@@ -22,6 +22,8 @@
|
|
|
22
22
|
<link rel="stylesheet" href="./static/css/sweetalert2.min.css" />
|
|
23
23
|
<!--highlight-->
|
|
24
24
|
<link rel="stylesheet" href="./static/css/highlight.min.css">
|
|
25
|
+
<!-- MagnaX Dark Theme -->
|
|
26
|
+
<link rel="stylesheet" href="./static/css/magnax-dark-theme.css">
|
|
25
27
|
|
|
26
28
|
{% block css %}
|
|
27
29
|
{% endblock %}
|
magnax/view/pages.py
CHANGED
|
@@ -4,7 +4,7 @@ from flask import Blueprint
|
|
|
4
4
|
from flask import render_template
|
|
5
5
|
from flask import request
|
|
6
6
|
from loguru import logger
|
|
7
|
-
from
|
|
7
|
+
from magnax.public.common import Devices, File, Method
|
|
8
8
|
|
|
9
9
|
page = Blueprint("page", __name__)
|
|
10
10
|
d = Devices()
|
magnax/web.py
CHANGED
|
@@ -15,9 +15,9 @@ from loguru import logger
|
|
|
15
15
|
from threading import Lock
|
|
16
16
|
from flask import Flask
|
|
17
17
|
from pyfiglet import Figlet
|
|
18
|
-
from
|
|
19
|
-
from
|
|
20
|
-
from
|
|
18
|
+
from magnax.view.apis import api
|
|
19
|
+
from magnax.view.pages import page
|
|
20
|
+
from magnax import __version__
|
|
21
21
|
|
|
22
22
|
# Global reference to tunneld process
|
|
23
23
|
_tunneld_process = None
|
|
@@ -85,7 +85,7 @@ def listen(port):
|
|
|
85
85
|
if conn:
|
|
86
86
|
pid = conn[0].pid
|
|
87
87
|
logger.warning('Port {} is used by process {}'.format(port, pid))
|
|
88
|
-
logger.info('you can start
|
|
88
|
+
logger.info('you can start magnax : python -m magnax --host={ip} --port={port}')
|
|
89
89
|
return False
|
|
90
90
|
return True
|
|
91
91
|
|
|
@@ -98,9 +98,9 @@ def status(host: str, port: int):
|
|
|
98
98
|
def open_url(host: str, port: int):
|
|
99
99
|
flag = True
|
|
100
100
|
while flag:
|
|
101
|
-
logger.info('start
|
|
101
|
+
logger.info('start magnax service')
|
|
102
102
|
f = Figlet(font="slant", width=300)
|
|
103
|
-
print(f.renderText("
|
|
103
|
+
print(f.renderText("MAGNAX {}".format(__version__)))
|
|
104
104
|
flag = status(host, port)
|
|
105
105
|
try:
|
|
106
106
|
webbrowser.open('http://{}:{}/?platform=Android&lan=en'.format(host, port), new=2)
|
|
@@ -192,7 +192,7 @@ def _run_with_sudo_linux(cmd_args):
|
|
|
192
192
|
try:
|
|
193
193
|
# Try zenity (GNOME)
|
|
194
194
|
result = subprocess.run(
|
|
195
|
-
['zenity', '--password', '--title=
|
|
195
|
+
['zenity', '--password', '--title=MagnaX - iOS tunneld'],
|
|
196
196
|
capture_output=True,
|
|
197
197
|
text=True,
|
|
198
198
|
timeout=60
|
|
@@ -338,7 +338,7 @@ def main(host=ip(), port=50003):
|
|
|
338
338
|
pool.close()
|
|
339
339
|
pool.join()
|
|
340
340
|
except KeyboardInterrupt:
|
|
341
|
-
logger.info('stop
|
|
341
|
+
logger.info('stop magnax success')
|
|
342
342
|
sys.exit()
|
|
343
343
|
except Exception as e:
|
|
344
344
|
logger.exception(e)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
magnax/__init__.py,sha256=
|
|
1
|
+
magnax/__init__.py,sha256=s-amh7cn2nsrg5V0DxZ4bF8UFkStEodQ9MmuHKYEYyQ,49
|
|
2
2
|
magnax/__main__.py,sha256=68w-kiT6T5K21OeMstIIjL1TnZAyH1POhuwA4deKXa0,553
|
|
3
3
|
magnax/debug.py,sha256=9qiGqFyLOMgoC8gAfsU8Id0dysp3aKzKPwemIg1cx8U,1877
|
|
4
|
-
magnax/web.py,sha256=
|
|
4
|
+
magnax/web.py,sha256=IQj24QNgJ7I2YbnU4yu8KGojJfHEYyygqf7ZFYIiL8M,10679
|
|
5
5
|
magnax/public/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
6
6
|
magnax/public/adb.py,sha256=71usHLFn9mlh7V-xgHHMyiTvGzeFJgcSE5ObkP_2LDk,2709
|
|
7
7
|
magnax/public/android_fps.py,sha256=2OA49N6TG10-MlBUQk68rX0nBxfUjpx1Uv_tcnuVATw,34547
|
|
8
|
-
magnax/public/apm.py,sha256=
|
|
9
|
-
magnax/public/apm_pk.py,sha256=
|
|
8
|
+
magnax/public/apm.py,sha256=y77rrtdNnSv8ZKChaQr-G6t7hsS3QDuLJJVQj47A2hM,55863
|
|
9
|
+
magnax/public/apm_pk.py,sha256=Hqzs76c8V-_1OcmubhW2Q6WcNmUALJb3SWN569-gW3c,8349
|
|
10
10
|
magnax/public/common.py,sha256=XrOQy-LbYS5YMlotIFnoquiEZpwBcCKUsijTmbGcv58,70361
|
|
11
11
|
magnax/public/config.json,sha256=rxCtmg1r3lNBQ8Y17tVTwJMyG-rIeKiSEjwz_qEAj0M,20
|
|
12
12
|
magnax/public/ios_perf_adapter.py,sha256=vO6m5H8zqh8qnRUgvkOnKIRGD2uQjJfR49O5wAGG29M,31949
|
|
@@ -72,16 +72,16 @@ magnax/templates/404.html,sha256=aDPuisMTuUmS2HNstT04NtLNQmMpTCfublcBQFp4flY,776
|
|
|
72
72
|
magnax/templates/analysis.html,sha256=ciy7iAvC8iOU0R4lqoRi8pnRVAF9Acx1Ht1NAU6mwig,101507
|
|
73
73
|
magnax/templates/analysis_compare.html,sha256=zJ1kOOkxS6JmWf5W1DiJWH4UbzGe_6qs3HhZW6qxy1I,43224
|
|
74
74
|
magnax/templates/analysis_pk.html,sha256=czi3D3Ep6ZJRFxP-SAecNJtAHYoLDTRv8ZoL6xjVX1g,38461
|
|
75
|
-
magnax/templates/base.html,sha256=
|
|
75
|
+
magnax/templates/base.html,sha256=LhYbouAekXIpN3vm0OW_xDtpCGb3pSbBOY3n6E_AX5k,31660
|
|
76
76
|
magnax/templates/index.html,sha256=YlMiz2JxluRwPgxpgAbAFRu7C_j4iveaOsD02zizbEs,163760
|
|
77
77
|
magnax/templates/pk.html,sha256=PrOkJpwpi-fSCb67yAZHiE3UhGt12YqcxM-bQnEuZ7Y,56531
|
|
78
78
|
magnax/templates/report.html,sha256=ISMyWoD9G7Wk3pSy0veKLO-6w9ZaTG9XKnlnIo4Z2xU,36915
|
|
79
79
|
magnax/view/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
80
80
|
magnax/view/apis.py,sha256=hxHug7ffXkqYUsIzGs1HT2E-2yyfd8uvyH8F15mp6u4,41235
|
|
81
|
-
magnax/view/pages.py,sha256=
|
|
82
|
-
magnax-1.0.
|
|
83
|
-
magnax-1.0.
|
|
84
|
-
magnax-1.0.
|
|
85
|
-
magnax-1.0.
|
|
86
|
-
magnax-1.0.
|
|
87
|
-
magnax-1.0.
|
|
81
|
+
magnax/view/pages.py,sha256=xG1aGdAGFyWvyR_ebV7UFqlimBc9jEt2aLQmwDoti1s,4899
|
|
82
|
+
magnax-1.0.8.dist-info/licenses/LICENSE,sha256=09YEeCofSxCb1Asz9e5gZrgIIQqhy0LrIBCpgvQbqqI,1090
|
|
83
|
+
magnax-1.0.8.dist-info/METADATA,sha256=1itZJy5qW4yaFOFcnqD-U0CQyMbKyZSwo7LHJaP7-hk,8859
|
|
84
|
+
magnax-1.0.8.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
85
|
+
magnax-1.0.8.dist-info/entry_points.txt,sha256=L3KQqjbXBQQldfi_ZN5Katb4JyXPSmHAmjkjbFWt4XY,48
|
|
86
|
+
magnax-1.0.8.dist-info/top_level.txt,sha256=45TCGtmk8yUZsPPXDk3AgiZgDTxv2E9YDv9CHIk7NmU,7
|
|
87
|
+
magnax-1.0.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|