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.
Files changed (38) hide show
  1. {dekshell-0.2.18 → dekshell-0.2.20}/PKG-INFO +1 -1
  2. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/methods.py +7 -2
  3. {dekshell-0.2.18 → dekshell-0.2.20}/pyproject.toml +1 -1
  4. {dekshell-0.2.18 → dekshell-0.2.20}/README.md +0 -0
  5. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/__init__.py +0 -0
  6. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/click/__entry__.py +0 -0
  7. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/click/__init__.py +0 -0
  8. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/__init__.py +0 -0
  9. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/__init__.py +0 -0
  10. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/contexts/properties.py +0 -0
  11. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/__init__.py +0 -0
  12. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/base/__init__.py +0 -0
  13. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/base/core.py +0 -0
  14. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/commands.py +0 -0
  15. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/comment.py +0 -0
  16. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/define.py +0 -0
  17. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/echo.py +0 -0
  18. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/empty.py +0 -0
  19. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/env.py +0 -0
  20. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/exec.py +0 -0
  21. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/for_.py +0 -0
  22. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/function.py +0 -0
  23. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/if_.py +0 -0
  24. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/input.py +0 -0
  25. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/invoke.py +0 -0
  26. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/pip_.py +0 -0
  27. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/redirect.py +0 -0
  28. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/shell.py +0 -0
  29. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/var.py +0 -0
  30. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/markers/while_.py +0 -0
  31. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/plugin/__init__.py +0 -0
  32. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/core/redirect.py +0 -0
  33. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/__init__.py +0 -0
  34. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/beep.py +0 -0
  35. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/cmd.py +0 -0
  36. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/pkg.py +0 -0
  37. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/serializer.py +0 -0
  38. {dekshell-0.2.18 → dekshell-0.2.20}/dekshell/utils/shell.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.18
3
+ Version: 0.2.20
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
6
  Requires-Python: >=3.8
@@ -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': {
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dekshell"
3
- version = "0.2.18"
3
+ version = "0.2.20"
4
4
  description = ""
5
5
  authors = [
6
6
  { name = "sanzenwin", email = "sanzenwin@gmail.com" },
File without changes