dekshell 0.2.52__py3-none-any.whl → 0.2.53__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.
@@ -17,6 +17,9 @@ from dektools.file import sure_dir, write_file, read_text, remove_path, sure_par
17
17
  split_file, combine_split_files, remove_split_files, meta_split_file, tree, iglob, \
18
18
  iter_dir_type, iter_dir_type_one, rc4_file, \
19
19
  where, which, those
20
+ from dektools.venvx.active import activate_venv, is_venv_active
21
+ from dektools.venvx.tools import find_venv_path, is_venv_path
22
+ from dektools.venvx.constants import venv_list, venv_main
20
23
  from dektools.crypto.rc4 import rc4
21
24
  from dektools.hash import hash_file
22
25
  from dektools.web.js.polyfill import atob, btoa
@@ -262,6 +265,14 @@ default_methods = {
262
265
  'str': lambda x, y=None: str_split(x, y),
263
266
  'tab': split_table_line,
264
267
  },
268
+ 'venv': {
269
+ None: activate_venv,
270
+ 'items': venv_list,
271
+ 'main': venv_main,
272
+ 'active': is_venv_active,
273
+ 'find': find_venv_path,
274
+ 'valid': is_venv_path
275
+ },
265
276
  'sh': {
266
277
  'admin': is_user_admin,
267
278
  'timeout': shell_timeout,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: dekshell
3
- Version: 0.2.52
3
+ Version: 0.2.53
4
4
  Author-Email: sanzenwin <sanzenwin@gmail.com>
5
5
  License: MIT
6
6
  Requires-Python: >=3.8
@@ -1,12 +1,12 @@
1
- dekshell-0.2.52.dist-info/METADATA,sha256=_PVxQOr4ORIm34iU1Xriwma05Sgkspw-jne_Se9W4tg,573
2
- dekshell-0.2.52.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
- dekshell-0.2.52.dist-info/entry_points.txt,sha256=d-kbfULiUTZWIBBsrQF3J_-wESncF-4K2rwHT08grlI,75
1
+ dekshell-0.2.53.dist-info/METADATA,sha256=iy8wm2iSoe8vp1Tm4xCdt-BqDIc4ZjtREQJqm4L3Xdc,573
2
+ dekshell-0.2.53.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
3
+ dekshell-0.2.53.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=tv8wKK114zQlXiJrU9eS0NHyvh6qDbY_Bx0GCVklexM,11899
9
+ dekshell/core/contexts/methods.py,sha256=-z94TUMKM7a2Jr3GqtXJhLbMMQEWWM0ji33Gfoz3Euk,12284
10
10
  dekshell/core/contexts/properties.py,sha256=TQonN3T_K2cB2uakq_DVVB13B-IFwoM6t2ZkL_OMekw,3365
11
11
  dekshell/core/markers/__init__.py,sha256=1oq4wlBOJV56hsshPe0ZZZMvoItCV2Xs2RN08HTrbiY,2255
12
12
  dekshell/core/markers/base/__init__.py,sha256=0LYnOVNXPBHfRQII00ZGkESTFX82TgHdSaTcHJoebXc,18051
@@ -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.52.dist-info/RECORD,,
40
+ dekshell-0.2.53.dist-info/RECORD,,