dekshell 0.2.62__py3-none-any.whl → 0.2.64__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.
@@ -11,6 +11,7 @@ from functools import reduce
11
11
  from itertools import chain
12
12
  from pathlib import Path
13
13
  from io import BytesIO, StringIO
14
+ from pick import pick
14
15
  from dektools.file import sure_dir, write_file, read_text, remove_path, sure_parent_dir, normal_path, \
15
16
  format_path_desc, read_file, split_ext, path_ext, clear_dir, copy_recurse_ignore, path_is_empty, \
16
17
  read_lines, seek_py_module_path, come_real_path, status_of_dir, diff_of_dir, path_parent, \
@@ -260,6 +261,8 @@ default_methods = {
260
261
  'o2s': obj2str,
261
262
  'now': now,
262
263
  'getpass': getpass.getpass,
264
+ 'pick': lambda options, title=None: pick(options, title or '')[0],
265
+ 'picking': lambda options, title=None: pick(options, title or '')[1],
263
266
  'install': _install,
264
267
  'Path': Path,
265
268
  'split': {
@@ -8,7 +8,7 @@ import getpass
8
8
  from pathlib import Path
9
9
  from sysconfig import get_paths
10
10
  from importlib import metadata
11
- from extra_platforms import current_os as extra_platforms_current_os
11
+ from dektools.libs.extra_platforms import current_os as extra_platforms_current_os
12
12
  from dektools.module import ModuleProxy
13
13
  from dektools.time import DateTime
14
14
  from dektools.file import read_text
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.62
3
+ Version: 0.2.64
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
- Requires-Python: >=3.7
7
- Requires-Dist: packaging<=23.1
8
- Requires-Dist: extra-platforms<=3.1.0
6
+ Requires-Python: >=3.8
7
+ Requires-Dist: packaging<26.0
8
+ Requires-Dist: pick<=2.4.0
9
9
  Requires-Dist: dektools[date,fetch,ignore,ps,tab]<1.0.0
10
10
  Requires-Dist: dekmedia[audio]<1.0.0
11
11
  Description-Content-Type: text/markdown
@@ -1,13 +1,13 @@
1
- dekshell-0.2.62.dist-info/METADATA,sha256=jMf-3O7Z5fFsSnrP-Ny_cWou3MUaOY9ew1VEn70gnuY,573
2
- dekshell-0.2.62.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
3
- dekshell-0.2.62.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.64.dist-info/METADATA,sha256=0k54fx9oGJKqtImWKMjIEA_eZtEZ3i-t5UbZ7y4OiEk,561
2
+ dekshell-0.2.64.dist-info/WHEEL,sha256=Wb0ASbVj8JvWHpOiIpPi7ucfIgJeCi__PzivviEAQFc,90
3
+ dekshell-0.2.64.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=oBZhmXtSoOBgZPAHu6wiMCCW-yIdkC5mqSXqbvKYUy4,490
9
- dekshell/core/contexts/methods.py,sha256=hHdVBOqD3tGUI0oNEJNP_E6Ndg_H8fzJBLMp7c-wGko,12362
10
- dekshell/core/contexts/properties.py,sha256=1FjP3a_2VkI7gx5-WVIn3nwHBZh_st85gXBI9-Y0PSQ,3357
9
+ dekshell/core/contexts/methods.py,sha256=5yIW5Nm1MZr1uR89ac7INU4JVwvq7Uk3pF10dRFoGxg,12529
10
+ dekshell/core/contexts/properties.py,sha256=sHjmnYaFlHpJcrMyYi1Zsj6ACIYnwWnUL4j3GpPuwiQ,3371
11
11
  dekshell/core/markers/__init__.py,sha256=1oq4wlBOJV56hsshPe0ZZZMvoItCV2Xs2RN08HTrbiY,2255
12
12
  dekshell/core/markers/base/__init__.py,sha256=CHD9vb8yGjnALimCwZJ2refbPB7zAE4FgQKLoRwzLrE,18037
13
13
  dekshell/core/markers/base/core.py,sha256=fBiyO8bxr2NC65FBc5myxkNqLvS9evRJRwxCHYaUlU4,11642
@@ -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.62.dist-info/RECORD,,
40
+ dekshell-0.2.64.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: pdm-backend (2.4.5)
2
+ Generator: pdm-backend (2.4.7)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any