omlish 0.0.0.dev66__py3-none-any.whl → 0.0.0.dev68__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- omlish/.manifests.json +4 -4
- omlish/__about__.py +2 -2
- omlish/argparse.py +9 -1
- omlish/diag/__init__.py +28 -0
- omlish/diag/_pycharm/__init__.py +0 -0
- omlish/diag/_pycharm/runhack.py +1422 -0
- omlish/diag/pycharm/__init__.py +6 -0
- omlish/diag/pycharm/cli.py +46 -0
- omlish/diag/{pycharm.py → pycharm/pycharm.py} +4 -15
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/METADATA +1 -1
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/RECORD +15 -11
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/WHEEL +1 -1
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/LICENSE +0 -0
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/entry_points.txt +0 -0
- {omlish-0.0.0.dev66.dist-info → omlish-0.0.0.dev68.dist-info}/top_level.txt +0 -0
omlish/.manifests.json
CHANGED
@@ -24,14 +24,14 @@
|
|
24
24
|
}
|
25
25
|
},
|
26
26
|
{
|
27
|
-
"module": ".diag.pycharm",
|
27
|
+
"module": ".diag.pycharm.cli",
|
28
28
|
"attr": "_CLI_MODULE",
|
29
|
-
"file": "omlish/diag/pycharm.py",
|
30
|
-
"line":
|
29
|
+
"file": "omlish/diag/pycharm/cli.py",
|
30
|
+
"line": 38,
|
31
31
|
"value": {
|
32
32
|
"$omdev.cli.types.CliModule": {
|
33
33
|
"cmd_name": "pycharm",
|
34
|
-
"mod_name": "omlish.diag.pycharm"
|
34
|
+
"mod_name": "omlish.diag.pycharm.cli"
|
35
35
|
}
|
36
36
|
}
|
37
37
|
},
|
omlish/__about__.py
CHANGED
omlish/argparse.py
CHANGED
@@ -187,7 +187,15 @@ class _CliMeta(type):
|
|
187
187
|
raise NotImplementedError
|
188
188
|
cparser = subparsers.add_parser(obj.name)
|
189
189
|
for arg in (obj.args or []):
|
190
|
-
|
190
|
+
if (
|
191
|
+
len(arg.args) == 1 and
|
192
|
+
isinstance(arg.args[0], str) and
|
193
|
+
not (n := check.isinstance(arg.args[0], str)).startswith('-') and
|
194
|
+
'metavar' not in arg.kwargs
|
195
|
+
):
|
196
|
+
cparser.add_argument(n.replace('-', '_'), **arg.kwargs, metavar=n)
|
197
|
+
else:
|
198
|
+
cparser.add_argument(*arg.args, **arg.kwargs)
|
191
199
|
cparser.set_defaults(_cmd=obj)
|
192
200
|
|
193
201
|
elif isinstance(obj, Arg):
|
omlish/diag/__init__.py
CHANGED
@@ -1,4 +1,32 @@
|
|
1
1
|
"""
|
2
2
|
TODO:
|
3
3
|
- https://github.com/aristocratos/btop/blob/00c90884c328eb3e44a0ab094e833161092aae9c/src/linux/btop_collect.cpp#L443
|
4
|
+
|
5
|
+
==
|
6
|
+
|
7
|
+
Repls
|
8
|
+
- python - https://docs.python.org/3/tutorial/interpreter.html
|
9
|
+
- ipython - https://github.com/ipython/ipython/
|
10
|
+
- ptpython - https://github.com/prompt-toolkit/ptpython
|
11
|
+
- bpython - https://github.com/bpython/bpython
|
12
|
+
|
13
|
+
Debuggers
|
14
|
+
- pdb - https://docs.python.org/3/library/pdb.html
|
15
|
+
- ipdb - https://github.com/gotcha/ipdb
|
16
|
+
- pdub - https://github.com/inducer/pudb/
|
17
|
+
|
18
|
+
CPU Profilers
|
19
|
+
- cProfile - https://docs.python.org/3/library/profile.html
|
20
|
+
- pyinstrument - https://github.com/joerick/pyinstrument
|
21
|
+
- py-pspy - https://github.com/benfred/py-spy
|
22
|
+
- austin-dist - https://github.com/P403n1x87/austin
|
23
|
+
- yappi - https://github.com/sumerc/yappi
|
24
|
+
|
25
|
+
Memory Profilers
|
26
|
+
- tracemalloc - https://docs.python.org/3/library/tracemalloc.html
|
27
|
+
- guppy3 - https://github.com/zhuyifei1999/guppy3/
|
28
|
+
- objgraph - https://github.com/mgedmin/objgraph
|
29
|
+
- memory-profiler - https://github.com/pythonprofilers/memory_profiler
|
30
|
+
- memray - https://github.com/bloomberg/memray
|
31
|
+
- pympler - https://github.com/pympler/pympler
|
4
32
|
"""
|
File without changes
|