dekshell 0.1.98__py3-none-any.whl → 0.2.0__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.
@@ -1,9 +1,8 @@
1
- import os
2
1
  import sys
3
2
  import typer
4
3
  from dektools.file import normal_path
5
4
  from dektools.output import pprint
6
- from dektools.str import str_escaped
5
+ from dektools.escape import str_escaped
7
6
  from dektools.shell import associate_console_script, get_current_sys_exe
8
7
  from dektools.typer import command_mixin, command_version
9
8
  from dektools.plugin import iter_plugins
dekshell/core/__init__.py CHANGED
@@ -8,7 +8,7 @@ from dektools.time import get_tz
8
8
  from dektools.format import format_duration
9
9
  from dektools.shell import shell_command, shell_wrapper
10
10
  from dektools.file import normal_path
11
- from dektools.str import str_escape_wrap
11
+ from dektools.escape import str_escape_wrap
12
12
  from .contexts import get_all_context
13
13
  from .markers import generate_markers, CommentConfigMarker
14
14
  from .markers.base.core import MarkerBase, MarkerSet
@@ -14,6 +14,7 @@ from dektools.net import get_available_port
14
14
  from dektools.func import FuncAnyArgs
15
15
  from dektools.fetch import download_file
16
16
  from dektools.download import download_from_http
17
+ from dektools.ps.process import process_detail, process_kill, process_list_all
17
18
  from dektools.time import now
18
19
  from dektools.str import shlex_split, shlex_quote
19
20
  from ...utils.beep import sound_notify
@@ -118,7 +119,7 @@ default_methods = {
118
119
  'echos': lambda *x, **y: print(*x, **dict(end='', flush=True) | y),
119
120
  'echox': lambda *x, **y: print(*x, **dict(file=sys.stderr, flush=True) | y),
120
121
  'pprint': pprint,
121
- 'obj2str': obj2str,
122
+ 'o2s': obj2str,
122
123
  'now': now,
123
124
  'getpass': getpass.getpass,
124
125
  'Path': Path,
@@ -158,6 +159,11 @@ default_methods = {
158
159
  'hash': lambda x, name='sha256', args=None: hash_file(name, x, args=args),
159
160
  },
160
161
  **path_common_methods,
162
+ 'pu': {
163
+ 'ps': process_list_all,
164
+ 'kill': process_kill,
165
+ 'pi': process_detail,
166
+ },
161
167
 
162
168
  'compress': compress_files,
163
169
  'decompress': decompress_files,
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.1.98
3
+ Version: 0.2.0
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
6
  Requires-Python: >=3.8
7
7
  Requires-Dist: packaging<=23.1
8
- Requires-Dist: dektools[date,fetch]<1.0.0
8
+ Requires-Dist: dektools[date,fetch,ps,tab]<1.0.0
9
9
  Requires-Dist: dekmedia[audio]<1.0.0
10
10
  Description-Content-Type: text/markdown
11
11
 
@@ -1,12 +1,12 @@
1
- dekshell-0.1.98.dist-info/METADATA,sha256=NPP9ZnDzxOZgm3U93ABhJZ0ohKxkgTad2gm2hjtlnC8,521
2
- dekshell-0.1.98.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
- dekshell-0.1.98.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.0.dist-info/METADATA,sha256=UNL_okQfODZUDKq426dmTCFXn9Th_HHFPXun-j0hUKo,527
2
+ dekshell-0.2.0.dist-info/WHEEL,sha256=thaaA2w1JzcGC48WYufAs8nrYZjJm8LqNfnXFOFyCC4,90
3
+ dekshell-0.2.0.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
4
4
  dekshell/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  dekshell/click/__entry__.py,sha256=CMuxUzXoEe4TcHFZwv-MNFwHnu1HSZCDpXFpqQ814uM,42
6
- dekshell/click/__init__.py,sha256=UKK_JnWOaY6gDakc1GMlVHoU04Kj_ot79GVUt_CAVbI,1877
7
- dekshell/core/__init__.py,sha256=nwHnjVIRHkEuFqPeoGqrydvfRFYt7cY8VGbQVCkEY0g,5204
6
+ dekshell/click/__init__.py,sha256=rFzB_exzPQaIcbbms5PdHAU3NGdl2MBaYbq9v7g7BOI,1870
7
+ dekshell/core/__init__.py,sha256=Cp--1j2jpJzchXR98HiRp2QAiOHz8HXm8iy6ZChIWmc,5207
8
8
  dekshell/core/contexts/__init__.py,sha256=ynsfv37azOKfI2UKd0iPl2M6iBW-k5cb1BqSLOWuJpI,482
9
- dekshell/core/contexts/methods.py,sha256=377lvp_1FvLE6AgJMfbPDu_yUF4DwWMKsTuB-f268Oo,5498
9
+ dekshell/core/contexts/methods.py,sha256=UNJ20SFGeAhnso7ACc0whOVMB9DAFfz6LeV7s7bLcpc,5684
10
10
  dekshell/core/contexts/properties.py,sha256=aLHtyUWedbFPQw33V5vQZTc4TeLMTC-AO6e7PhBZKbk,1570
11
11
  dekshell/core/markers/__init__.py,sha256=bmGMbZRqsOohMKjH0AReFxZ-nIPFF6YgPJMFT6gTJEw,1725
12
12
  dekshell/core/markers/base/__init__.py,sha256=AQYr7H0F06izu5jhu8EgLYJ2ERzJh0eS38h9gtl6OZs,13067
@@ -36,4 +36,4 @@ dekshell/utils/cmd.py,sha256=_WG7K-CO-WQkI9ERyrhI2d4yT-DX3OjjJWbNzhmsPus,1197
36
36
  dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
37
37
  dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
38
38
  dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
39
- dekshell-0.1.98.dist-info/RECORD,,
39
+ dekshell-0.2.0.dist-info/RECORD,,