dekshell 0.2.37__py3-none-any.whl → 0.2.39__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.
- dekshell/core/contexts/methods.py +20 -5
- dekshell/core/contexts/properties.py +2 -0
- {dekshell-0.2.37.dist-info → dekshell-0.2.39.dist-info}/METADATA +1 -1
- {dekshell-0.2.37.dist-info → dekshell-0.2.39.dist-info}/RECORD +6 -6
- {dekshell-0.2.37.dist-info → dekshell-0.2.39.dist-info}/WHEEL +0 -0
- {dekshell-0.2.37.dist-info → dekshell-0.2.39.dist-info}/entry_points.txt +0 -0
|
@@ -5,6 +5,7 @@ import time
|
|
|
5
5
|
import tempfile
|
|
6
6
|
import getpass
|
|
7
7
|
import operator
|
|
8
|
+
import base64
|
|
8
9
|
from importlib import import_module
|
|
9
10
|
from functools import reduce
|
|
10
11
|
from itertools import chain
|
|
@@ -14,8 +15,9 @@ from dektools.file import sure_dir, write_file, read_text, remove_path, sure_par
|
|
|
14
15
|
format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty, \
|
|
15
16
|
read_lines, seek_py_module_path, come_real_path, status_of_dir, diff_of_dir, path_parent, \
|
|
16
17
|
split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
|
|
17
|
-
iter_dir_type, iter_dir_type_one, \
|
|
18
|
+
iter_dir_type, iter_dir_type_one, rc4_file, \
|
|
18
19
|
where, which, those
|
|
20
|
+
from dektools.crypto.rc4 import rc4
|
|
19
21
|
from dektools.hash import hash_file
|
|
20
22
|
from dektools.zip import compress_files, decompress_files
|
|
21
23
|
from dektools.output import pprint, obj2str
|
|
@@ -29,7 +31,8 @@ from dektools.str import shlex_split, shlex_quote, str_split, split_table_line
|
|
|
29
31
|
from dektools.format import format_duration
|
|
30
32
|
from dektools.shell import shell_wrapper, is_user_admin, shell_timeout, shell_retry
|
|
31
33
|
from dektools.match import GeneralMatcher, glob2re, glob_compile, glob_match
|
|
32
|
-
from dektools.cmd.git import
|
|
34
|
+
from dektools.cmd.git import git_parse_modules, git_clean_dir, git_fetch_min, git_remove_tag, git_latest_tag, \
|
|
35
|
+
git_list_remotes, git_apply, git_head
|
|
33
36
|
from ...utils.beep import sound_notify
|
|
34
37
|
from ...utils.cmd import pack_context_full
|
|
35
38
|
from ..markers.base.core import MarkerBase, get_inner_vars
|
|
@@ -307,6 +310,7 @@ default_methods = {
|
|
|
307
310
|
'ps': process_print_all,
|
|
308
311
|
'pd': process_print_detail,
|
|
309
312
|
'detail': process_detail,
|
|
313
|
+
'username': process_username,
|
|
310
314
|
'query': lambda x: list(process_query(x)),
|
|
311
315
|
},
|
|
312
316
|
|
|
@@ -334,6 +338,13 @@ default_methods = {
|
|
|
334
338
|
'is_': lambda x, y: x is y,
|
|
335
339
|
'nis': lambda x, y: x is not y,
|
|
336
340
|
|
|
341
|
+
'rc4': rc4,
|
|
342
|
+
'rc4file': rc4_file,
|
|
343
|
+
|
|
344
|
+
'e64': lambda sb, encode='utf-8': base64.b64encode(sb if isinstance(sb, str) else sb.encode(encode)).decode(
|
|
345
|
+
'latin-1'),
|
|
346
|
+
'd64': lambda sb: base64.b64decode(sb),
|
|
347
|
+
|
|
337
348
|
'beep': lambda x=True: sound_notify(x),
|
|
338
349
|
|
|
339
350
|
'invoke': lambda __placeholder__filepath, *args, **kwargs: InvokeMarker.execute_file(
|
|
@@ -361,11 +372,15 @@ default_methods = {
|
|
|
361
372
|
},
|
|
362
373
|
|
|
363
374
|
'git': {
|
|
364
|
-
'apply': git_apply,
|
|
365
|
-
'remotes': git_list_remotes,
|
|
366
375
|
'modules': git_parse_modules,
|
|
367
|
-
'fetch': git_fetch_min,
|
|
368
376
|
'clean': git_clean_dir,
|
|
377
|
+
'fetch': git_fetch_min,
|
|
378
|
+
'tag': {
|
|
379
|
+
'rm': git_remove_tag,
|
|
380
|
+
'latest': git_latest_tag
|
|
381
|
+
},
|
|
382
|
+
'remotes': git_list_remotes,
|
|
383
|
+
'apply': git_apply,
|
|
369
384
|
'head': git_head,
|
|
370
385
|
}
|
|
371
386
|
}
|
|
@@ -15,6 +15,7 @@ from dektools.file import read_text
|
|
|
15
15
|
from dektools.env import is_on_cicd
|
|
16
16
|
from dektools.ps.process import process_attrs
|
|
17
17
|
from dektools.context.utils import Method, MethodSimple, AttrProxy
|
|
18
|
+
from dektools.web.url import Url
|
|
18
19
|
from ...utils.serializer import serializer
|
|
19
20
|
from ..redirect import shell_name
|
|
20
21
|
from ..markers.base.core import get_inner_vars
|
|
@@ -107,6 +108,7 @@ default_properties = {
|
|
|
107
108
|
'pu': {
|
|
108
109
|
'attrs': process_attrs
|
|
109
110
|
},
|
|
111
|
+
'Url': Url,
|
|
110
112
|
'obj': serializer,
|
|
111
113
|
'mp': ModuleProxy(),
|
|
112
114
|
'date': DateTime(),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
dekshell-0.2.
|
|
2
|
-
dekshell-0.2.
|
|
3
|
-
dekshell-0.2.
|
|
1
|
+
dekshell-0.2.39.dist-info/METADATA,sha256=06C1Wjdomjd9jSYisw4o6eXQJhYPOdk7UhyxOzzFwBY,573
|
|
2
|
+
dekshell-0.2.39.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dekshell-0.2.39.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
6
|
dekshell/click/__init__.py,sha256=r-AHdO9CEEVvTN20-8Jozr6Zh8XSv_BnktYRwrlhtrE,2046
|
|
7
7
|
dekshell/core/__init__.py,sha256=isDEKwk1odLdvTQNCILCtVNBuXp1uFVPz_uTDNihkVU,5547
|
|
8
8
|
dekshell/core/contexts/__init__.py,sha256=ynsfv37azOKfI2UKd0iPl2M6iBW-k5cb1BqSLOWuJpI,482
|
|
9
|
-
dekshell/core/contexts/methods.py,sha256=
|
|
10
|
-
dekshell/core/contexts/properties.py,sha256=
|
|
9
|
+
dekshell/core/contexts/methods.py,sha256=_w4BX-d6-HRlcs_ag75mypGSrgDTWTBRXBKSEzdf9rg,11003
|
|
10
|
+
dekshell/core/contexts/properties.py,sha256=yilnRe2I6FTIui4kXUBCWvH2ymvpEfc_13on8pAZwnY,3456
|
|
11
11
|
dekshell/core/markers/__init__.py,sha256=yRQazZ1dxMltFao_RQnDnawSnQcjN_4B930MjJhaZ40,1968
|
|
12
12
|
dekshell/core/markers/base/__init__.py,sha256=CsbNYGQ2Od3XdekR9RFMJ7mo9Roj-LlXS62SY50fiAY,16826
|
|
13
13
|
dekshell/core/markers/base/core.py,sha256=InsUA3md2gC6GyXQsvARfeNTrfbVD3gGOYxTM8VqqPA,11679
|
|
@@ -37,4 +37,4 @@ dekshell/utils/cmd.py,sha256=K9FbXgHcGFchHA58xI0_t4YK4yb8XkWbxsNoztYRx3Y,518
|
|
|
37
37
|
dekshell/utils/pkg.py,sha256=TgYqRqawoJfjkxt6UAHnp9ttmpjuHiWRFbqxADOS1VE,1337
|
|
38
38
|
dekshell/utils/serializer.py,sha256=aIdF2Wzo-qHmIshv46jn1XD0X66vQ1JFdU-g3ZFbH2w,386
|
|
39
39
|
dekshell/utils/shell.py,sha256=0NoA2-SOOMinbmZZipwzL-npBbzPOdWEfdPVYqq5G5g,92
|
|
40
|
-
dekshell-0.2.
|
|
40
|
+
dekshell-0.2.39.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|