omlish 0.0.0.dev66__py3-none-any.whl → 0.0.0.dev68__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.
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": 141,
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
@@ -1,5 +1,5 @@
1
- __version__ = '0.0.0.dev66'
2
- __revision__ = '24d0c5b04bcc81faf42cb764cc750be5dae77a93'
1
+ __version__ = '0.0.0.dev68'
2
+ __revision__ = '60a77b10e4421b5bcc3597af79e50d5c8ab4d924'
3
3
 
4
4
 
5
5
  #
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
- cparser.add_argument(*arg.args, **arg.kwargs)
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