dycw-utilities 0.174.4__py3-none-any.whl → 0.174.5__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.
- {dycw_utilities-0.174.4.dist-info → dycw_utilities-0.174.5.dist-info}/METADATA +1 -1
- {dycw_utilities-0.174.4.dist-info → dycw_utilities-0.174.5.dist-info}/RECORD +6 -6
- utilities/__init__.py +1 -1
- utilities/subprocess.py +10 -0
- {dycw_utilities-0.174.4.dist-info → dycw_utilities-0.174.5.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.174.4.dist-info → dycw_utilities-0.174.5.dist-info}/entry_points.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
utilities/__init__.py,sha256=
|
|
1
|
+
utilities/__init__.py,sha256=HSEHPwrjbITUKM0rHSI676yh7VgQMNCB5ksk8o1Hb8M,60
|
|
2
2
|
utilities/aeventkit.py,sha256=OmDBhYGgbsKrB7cdC5FFpJHUatX9O76eTeKVVTksp2Y,12673
|
|
3
3
|
utilities/altair.py,sha256=rUK99g9x6CYDDfiZrf-aTx5fSRbL1Q8ctgKORowzXHg,9060
|
|
4
4
|
utilities/asyncio.py,sha256=aJySVxBY0gqsIYnoNmH7-1r8djKuf4vSsU69VCD08t8,16772
|
|
@@ -80,7 +80,7 @@ utilities/sqlalchemy.py,sha256=HQYpd7LFxdTF5WYVWYtCJeEBI71EJm7ytvCGyAH9B-U,37163
|
|
|
80
80
|
utilities/sqlalchemy_polars.py,sha256=JCGhB37raSR7fqeWV5dTsciRTMVzIdVT9YSqKT0piT0,13370
|
|
81
81
|
utilities/statsmodels.py,sha256=koyiBHvpMcSiBfh99wFUfSggLNx7cuAw3rwyfAhoKpQ,3410
|
|
82
82
|
utilities/string.py,sha256=shmBK87zZwzGyixuNuXCiUbqzfeZ9xlrFwz6JTaRvDk,582
|
|
83
|
-
utilities/subprocess.py,sha256=
|
|
83
|
+
utilities/subprocess.py,sha256=r91VteJ7I1upuiWxRT2kvm17xffS5eXMZ3CJXdmZT4s,15686
|
|
84
84
|
utilities/tempfile.py,sha256=Lx6qa16lL1XVH6WdmD_G9vlN6gLI8nrIurxmsFkPKvg,3022
|
|
85
85
|
utilities/testbook.py,sha256=j1KmaVbrX9VrbeMgtPh5gk55myAsn3dyRUn7jGbPbRk,1294
|
|
86
86
|
utilities/text.py,sha256=7SvwcSR2l_5cOrm1samGnR4C-ZI6qyFLHLzSpO1zeHQ,13958
|
|
@@ -97,7 +97,7 @@ utilities/warnings.py,sha256=un1LvHv70PU-LLv8RxPVmugTzDJkkGXRMZTE2-fTQHw,1771
|
|
|
97
97
|
utilities/whenever.py,sha256=F4ek0-OBWxHYrZdmoZt76N2RnNyKY5KrEHt7rqO4AQE,60183
|
|
98
98
|
utilities/zipfile.py,sha256=24lQc9ATcJxHXBPc_tBDiJk48pWyRrlxO2fIsFxU0A8,699
|
|
99
99
|
utilities/zoneinfo.py,sha256=tdIScrTB2-B-LH0ukb1HUXKooLknOfJNwHk10MuMYvA,3619
|
|
100
|
-
dycw_utilities-0.174.
|
|
101
|
-
dycw_utilities-0.174.
|
|
102
|
-
dycw_utilities-0.174.
|
|
103
|
-
dycw_utilities-0.174.
|
|
100
|
+
dycw_utilities-0.174.5.dist-info/WHEEL,sha256=ZyFSCYkV2BrxH6-HRVRg3R9Fo7MALzer9KiPYqNxSbo,79
|
|
101
|
+
dycw_utilities-0.174.5.dist-info/entry_points.txt,sha256=ykGI1ArwOPHqm2g5Cqh3ENdMxEej_a_FcOUov5EM5Oc,155
|
|
102
|
+
dycw_utilities-0.174.5.dist-info/METADATA,sha256=qYrj2g20dkkvXEdb1v43eAPpIoIS2vJOu4nM5QEFG54,1709
|
|
103
|
+
dycw_utilities-0.174.5.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/subprocess.py
CHANGED
|
@@ -27,6 +27,10 @@ BASH_LS = ["bash", "-ls"]
|
|
|
27
27
|
MKTEMP_DIR_CMD = ["mktemp", "-d"]
|
|
28
28
|
|
|
29
29
|
|
|
30
|
+
def cp_cmd(src: PathLike, dest: PathLike, /) -> list[str]:
|
|
31
|
+
return ["cp", "-r", str(src), str(dest)]
|
|
32
|
+
|
|
33
|
+
|
|
30
34
|
def echo_cmd(text: str, /) -> list[str]:
|
|
31
35
|
return ["echo", text]
|
|
32
36
|
|
|
@@ -60,6 +64,10 @@ def mkdir_cmd(path: PathLike, /, *, parent: bool = False) -> list[str]:
|
|
|
60
64
|
return ["mkdir", "-p", str(path_use)]
|
|
61
65
|
|
|
62
66
|
|
|
67
|
+
def mv_cmd(src: PathLike, dest: PathLike, /) -> list[str]:
|
|
68
|
+
return ["mv", str(src), str(dest)]
|
|
69
|
+
|
|
70
|
+
|
|
63
71
|
def rm_cmd(path: PathLike, /) -> list[str]:
|
|
64
72
|
return ["rm", "-rf", str(path)]
|
|
65
73
|
|
|
@@ -507,11 +515,13 @@ __all__ = [
|
|
|
507
515
|
"BASH_LC",
|
|
508
516
|
"BASH_LS",
|
|
509
517
|
"MKTEMP_DIR_CMD",
|
|
518
|
+
"cp_cmd",
|
|
510
519
|
"echo_cmd",
|
|
511
520
|
"expand_path",
|
|
512
521
|
"maybe_sudo_cmd",
|
|
513
522
|
"mkdir",
|
|
514
523
|
"mkdir_cmd",
|
|
524
|
+
"mv_cmd",
|
|
515
525
|
"rm_cmd",
|
|
516
526
|
"run",
|
|
517
527
|
"ssh",
|
|
File without changes
|
|
File without changes
|