dekshell 0.2.18__tar.gz → 0.2.20__tar.gz
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-0.2.18 → dekshell-0.2.20}/PKG-INFO +1 -1
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/methods.py +7 -2
- {dekshell-0.2.18 → dekshell-0.2.20}/pyproject.toml +1 -1
- {dekshell-0.2.18 → dekshell-0.2.20}/README.md +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/click/__entry__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/click/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/properties.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/base/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/base/core.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/commands.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/comment.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/define.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/echo.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/empty.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/env.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/exec.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/for_.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/function.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/if_.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/input.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/invoke.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/pip_.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/redirect.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/shell.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/var.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/while_.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/plugin/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/redirect.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/__init__.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/beep.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/cmd.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/pkg.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/serializer.py +0 -0
- {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/shell.py +0 -0
|
@@ -11,7 +11,7 @@ from pathlib import Path
|
|
|
11
11
|
from io import BytesIO, StringIO
|
|
12
12
|
from dektools.file import sure_dir, write_file, read_text, remove_path, sure_parent_dir, normal_path, \
|
|
13
13
|
format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty, \
|
|
14
|
-
read_lines, seek_py_module_path, \
|
|
14
|
+
read_lines, seek_py_module_path, come_real_path, status_of_dir, diff_of_dir, \
|
|
15
15
|
split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
|
|
16
16
|
where, where_list, which, which_list
|
|
17
17
|
from dektools.hash import hash_file
|
|
@@ -19,7 +19,7 @@ from dektools.zip import compress_files, decompress_files
|
|
|
19
19
|
from dektools.output import pprint, obj2str
|
|
20
20
|
from dektools.net import get_available_port
|
|
21
21
|
from dektools.func import FuncAnyArgs
|
|
22
|
-
from dektools.fetch import download_file
|
|
22
|
+
from dektools.fetch import download_file, download_content
|
|
23
23
|
from dektools.download import download_from_http
|
|
24
24
|
from dektools.ps.process import process_detail, process_kill, process_list_all
|
|
25
25
|
from dektools.time import now
|
|
@@ -234,6 +234,7 @@ default_methods = {
|
|
|
234
234
|
'parent': _parent_dir,
|
|
235
235
|
'abs': normal_path,
|
|
236
236
|
'rel': os.path.relpath,
|
|
237
|
+
'cr': come_real_path,
|
|
237
238
|
'fullname': os.path.basename,
|
|
238
239
|
'name': lambda x: split_ext(x)[0],
|
|
239
240
|
'ext': path_ext,
|
|
@@ -262,6 +263,9 @@ default_methods = {
|
|
|
262
263
|
'sfm': meta_split_file,
|
|
263
264
|
'sfc': combine_split_files,
|
|
264
265
|
|
|
266
|
+
'sod': status_of_dir,
|
|
267
|
+
'dod': diff_of_dir,
|
|
268
|
+
|
|
265
269
|
'hash': lambda x, name='sha256', args=None: hash_file(name, x, args=args),
|
|
266
270
|
},
|
|
267
271
|
**path_common_methods,
|
|
@@ -316,6 +320,7 @@ default_methods = {
|
|
|
316
320
|
'port': get_available_port,
|
|
317
321
|
'fetch': download_file,
|
|
318
322
|
'download': download_from_http,
|
|
323
|
+
'content': download_content,
|
|
319
324
|
},
|
|
320
325
|
|
|
321
326
|
'git': {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|