dycw-utilities 0.175.31__py3-none-any.whl → 0.175.32__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.175.31.dist-info → dycw_utilities-0.175.32.dist-info}/METADATA +1 -1
- {dycw_utilities-0.175.31.dist-info → dycw_utilities-0.175.32.dist-info}/RECORD +6 -6
- utilities/__init__.py +1 -1
- utilities/docker.py +13 -7
- {dycw_utilities-0.175.31.dist-info → dycw_utilities-0.175.32.dist-info}/WHEEL +0 -0
- {dycw_utilities-0.175.31.dist-info → dycw_utilities-0.175.32.dist-info}/entry_points.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
utilities/__init__.py,sha256=
|
|
1
|
+
utilities/__init__.py,sha256=7U4Xd87qzllL41jIo34W_Ske0_0FA06dOeqtqpEx2p8,61
|
|
2
2
|
utilities/altair.py,sha256=TLfRFbG9HwG7SLXoJ-v0r-t49ZaGgTQZD82cpjVi4vs,9085
|
|
3
3
|
utilities/asyncio.py,sha256=aJySVxBY0gqsIYnoNmH7-1r8djKuf4vSsU69VCD08t8,16772
|
|
4
4
|
utilities/atomicwrites.py,sha256=tPo6r-Rypd9u99u66B9z86YBPpnLrlHtwox_8Z7T34Y,5790
|
|
@@ -11,7 +11,7 @@ utilities/contextvars.py,sha256=J8OhC7jqozAGYOCe2KUWysbPXNGe5JYz3HfaY_mIs08,883
|
|
|
11
11
|
utilities/cryptography.py,sha256=5PFrzsNUGHay91dFgYnDKwYprXxahrBqztmUqViRzBk,956
|
|
12
12
|
utilities/cvxpy.py,sha256=Rv1-fD-XYerosCavRF8Pohop2DBkU3AlFaGTfD8AEAA,13776
|
|
13
13
|
utilities/dataclasses.py,sha256=xbU3QN1GFy7RC6hIJRZIeUZm7YRlodrgEWmahWG6k2g,32465
|
|
14
|
-
utilities/docker.py,sha256=
|
|
14
|
+
utilities/docker.py,sha256=0OQdmMvB_cgtRpUoWH98IMzlQyrcxEekGmgWvd8UUt4,10675
|
|
15
15
|
utilities/enum.py,sha256=5l6pwZD1cjSlVW4ss-zBPspWvrbrYrdtJWcg6f5_J5w,5781
|
|
16
16
|
utilities/errors.py,sha256=mFlDGSM0LI1jZ1pbqwLAH3ttLZ2JVIxyZLojw8tGVZU,1479
|
|
17
17
|
utilities/fastapi.py,sha256=TqyKvBjiMS594sXPjrz-KRTLMb3l3D3rZ1zAYV7GfOk,1454
|
|
@@ -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.175.
|
|
101
|
-
dycw_utilities-0.175.
|
|
102
|
-
dycw_utilities-0.175.
|
|
103
|
-
dycw_utilities-0.175.
|
|
100
|
+
dycw_utilities-0.175.32.dist-info/WHEEL,sha256=RRVLqVugUmFOqBedBFAmA4bsgFcROUBiSUKlERi0Hcg,79
|
|
101
|
+
dycw_utilities-0.175.32.dist-info/entry_points.txt,sha256=cOGtKeJI0KXLSV7MJ8Dhc2G8jPgDcBDm53MVNJU4ycI,136
|
|
102
|
+
dycw_utilities-0.175.32.dist-info/METADATA,sha256=Ydsvjv-Zb-V82ofDdKk1xhFSi7SsViGqFXBPHOp-clE,1443
|
|
103
|
+
dycw_utilities-0.175.32.dist-info/RECORD,,
|
utilities/__init__.py
CHANGED
utilities/docker.py
CHANGED
|
@@ -73,30 +73,36 @@ def docker_compose_pull_cmd(
|
|
|
73
73
|
def docker_compose_up(
|
|
74
74
|
*,
|
|
75
75
|
files: MaybeIterable[PathLike] | None = None,
|
|
76
|
+
detach: bool = True,
|
|
76
77
|
print: bool = False, # noqa: A002
|
|
77
78
|
print_stdout: bool = False,
|
|
78
79
|
print_stderr: bool = False,
|
|
79
80
|
) -> None:
|
|
80
81
|
"""Create and start containers."""
|
|
81
|
-
args = docker_compose_up_cmd(files=files) # pragma: no cover
|
|
82
|
+
args = docker_compose_up_cmd(files=files, detach=detach) # pragma: no cover
|
|
82
83
|
run( # pragma: no cover
|
|
83
84
|
*args, print=print, print_stdout=print_stdout, print_stderr=print_stderr
|
|
84
85
|
)
|
|
85
86
|
|
|
86
87
|
|
|
87
|
-
def docker_compose_up_cmd(
|
|
88
|
+
def docker_compose_up_cmd(
|
|
89
|
+
*, files: MaybeIterable[PathLike] | None = None, detach: bool = True
|
|
90
|
+
) -> list[str]:
|
|
88
91
|
"""Command to use 'docker compose up' to create and start containers."""
|
|
89
|
-
|
|
92
|
+
args: list[str] = []
|
|
93
|
+
if detach:
|
|
94
|
+
args.append("--detach")
|
|
95
|
+
return _docker_compose_cmd("up", *args, files=files)
|
|
90
96
|
|
|
91
97
|
|
|
92
98
|
def _docker_compose_cmd(
|
|
93
|
-
cmd: str, /,
|
|
99
|
+
cmd: str, /, *args: str, files: MaybeIterable[PathLike] | None = None
|
|
94
100
|
) -> list[str]:
|
|
95
|
-
|
|
101
|
+
all_args: list[str] = ["docker", "compose"]
|
|
96
102
|
if files is not None:
|
|
97
103
|
for file in always_iterable(files):
|
|
98
|
-
|
|
99
|
-
return [*
|
|
104
|
+
all_args.extend(["--file", str(file)])
|
|
105
|
+
return [*all_args, cmd, *args]
|
|
100
106
|
|
|
101
107
|
|
|
102
108
|
##
|
|
File without changes
|
|
File without changes
|