dekshell 0.2.41__py3-none-any.whl → 0.2.42__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 +4 -1
- {dekshell-0.2.41.dist-info → dekshell-0.2.42.dist-info}/METADATA +1 -1
- {dekshell-0.2.41.dist-info → dekshell-0.2.42.dist-info}/RECORD +5 -5
- {dekshell-0.2.41.dist-info → dekshell-0.2.42.dist-info}/WHEEL +0 -0
- {dekshell-0.2.41.dist-info → dekshell-0.2.42.dist-info}/entry_points.txt +0 -0
|
@@ -19,6 +19,7 @@ from dektools.file import sure_dir, write_file, read_text, remove_path, sure_par
|
|
|
19
19
|
where, which, those
|
|
20
20
|
from dektools.crypto.rc4 import rc4
|
|
21
21
|
from dektools.hash import hash_file
|
|
22
|
+
from dektools.web.js.polyfill import atob, btoa
|
|
22
23
|
from dektools.zip import compress_files, decompress_files
|
|
23
24
|
from dektools.output import pprint, obj2str
|
|
24
25
|
from dektools.net import get_available_port
|
|
@@ -341,9 +342,11 @@ default_methods = {
|
|
|
341
342
|
'rc4': rc4,
|
|
342
343
|
'rc4file': rc4_file,
|
|
343
344
|
|
|
344
|
-
'b64e': lambda sb, encode='utf-8': base64.b64encode(sb if isinstance(sb, str) else sb
|
|
345
|
+
'b64e': lambda sb, encode='utf-8': base64.b64encode(sb.encode(encode) if isinstance(sb, str) else sb).decode(
|
|
345
346
|
'latin-1'),
|
|
346
347
|
'b64d': lambda sb: base64.b64decode(sb),
|
|
348
|
+
'atob': atob,
|
|
349
|
+
'btoa': btoa,
|
|
347
350
|
|
|
348
351
|
'beep': lambda x=True: sound_notify(x),
|
|
349
352
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
dekshell-0.2.
|
|
2
|
-
dekshell-0.2.
|
|
3
|
-
dekshell-0.2.
|
|
1
|
+
dekshell-0.2.42.dist-info/METADATA,sha256=_Qmh2L_sLWIq08ko5SNnZZITaHfsXTMxgNUUQ4zKXCE,573
|
|
2
|
+
dekshell-0.2.42.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
|
3
|
+
dekshell-0.2.42.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=
|
|
9
|
+
dekshell/core/contexts/methods.py,sha256=uSepT9G6VT2NSs_EtSWZdFD3kt6dwcHcZOSknPougCg,11089
|
|
10
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
|
|
@@ -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.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|