dycw-utilities 0.150.4__py3-none-any.whl → 0.150.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dycw-utilities
3
- Version: 0.150.4
3
+ Version: 0.150.6
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
@@ -12,7 +12,7 @@ Provides-Extra: logging
12
12
  Requires-Dist: coloredlogs<15.1,>=15.0.1; extra == 'logging'
13
13
  Provides-Extra: test
14
14
  Requires-Dist: dycw-pytest-only<2.2,>=2.1.1; extra == 'test'
15
- Requires-Dist: hypothesis<6.136,>=6.135.33; extra == 'test'
15
+ Requires-Dist: hypothesis<6.137,>=6.136.0; extra == 'test'
16
16
  Requires-Dist: pudb<2025.2,>=2025.1; extra == 'test'
17
17
  Requires-Dist: pytest-asyncio<1.2,>=1.1.0; extra == 'test'
18
18
  Requires-Dist: pytest-cov<6.3,>=6.2.1; extra == 'test'
@@ -1,4 +1,4 @@
1
- utilities/__init__.py,sha256=5doYSCwWiMG5YyPPH9P5bJMpn_z6Oc2DQ8YaNf9S00k,60
1
+ utilities/__init__.py,sha256=r3XDNNoBNVT8obTMw2ofUT9cCxfGOqXSZcHwqjnPcIs,60
2
2
  utilities/altair.py,sha256=92E2lCdyHY4Zb-vCw6rEJIsWdKipuu-Tu2ab1ufUfAk,9079
3
3
  utilities/asyncio.py,sha256=2m2a2C-Qgc6OHTTHL332-t66A7xDITt_SORT7a1DJWo,16792
4
4
  utilities/atomicwrites.py,sha256=xcOWenTBRS0oat3kg7Sqe51AohNThMQ2ixPL7QCG8hw,5795
@@ -49,7 +49,7 @@ utilities/pickle.py,sha256=MBT2xZCsv0pH868IXLGKnlcqNx2IRVKYNpRcqiQQqxw,653
49
49
  utilities/platform.py,sha256=Ue9LSxYvg9yUXGKuz5aZoy_qkUEXde-v6B09exgSctU,2813
50
50
  utilities/polars.py,sha256=BgiDryAVOapi41ddfJqN0wYh_sDj8BNEYtPB36LaHdo,71824
51
51
  utilities/polars_ols.py,sha256=Uc9V5kvlWZ5cU93lKZ-cfAKdVFFw81tqwLW9PxtUvMs,5618
52
- utilities/postgres.py,sha256=4-eE_8GBvcp3oBBMpHp7desQaWF8qxn5ms7cdAaTo2Q,13290
52
+ utilities/postgres.py,sha256=Ao44SJWRchLbP1NTcWwvci2NS-cEp5ehPSu9NFN8-a4,13347
53
53
  utilities/pottery.py,sha256=u0uvyGgYyujxftEMlsv6ppYTKQoVVjHt5jnVxxYz9s4,6596
54
54
  utilities/pqdm.py,sha256=BTsYPtbKQWwX-iXF4qCkfPG7DPxIB54J989n83bXrIo,3092
55
55
  utilities/psutil.py,sha256=KUlu4lrUw9Zg1V7ZGetpWpGb9DB8l_SSDWGbANFNCPU,2104
@@ -89,8 +89,8 @@ utilities/zoneinfo.py,sha256=oEH-nL3t4h9uawyZqWDtNtDAl6M-CLpLYGI_nI6DulM,1971
89
89
  utilities/pytest_plugins/__init__.py,sha256=U4S_2y3zgLZVfMenHRaJFBW8yqh2mUBuI291LGQVOJ8,35
90
90
  utilities/pytest_plugins/pytest_randomly.py,sha256=NXzCcGKbpgYouz5yehKb4jmxmi2SexKKpgF4M65bi10,414
91
91
  utilities/pytest_plugins/pytest_regressions.py,sha256=Iwhfv_OJH7UCPZCfoh7ugZ2Xjqjil-BBBsOb8sDwiGI,1471
92
- dycw_utilities-0.150.4.dist-info/METADATA,sha256=yXNNi9xSu6WZnpC3l7KS79CBuiN_co1JXgpEmlHEN2A,1697
93
- dycw_utilities-0.150.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
94
- dycw_utilities-0.150.4.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
95
- dycw_utilities-0.150.4.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
96
- dycw_utilities-0.150.4.dist-info/RECORD,,
92
+ dycw_utilities-0.150.6.dist-info/METADATA,sha256=HBPXlvZrEKOZFhJRwxpGhpTkqqmIk2aKYvkRz4k-Eyc,1696
93
+ dycw_utilities-0.150.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
94
+ dycw_utilities-0.150.6.dist-info/entry_points.txt,sha256=BOD_SoDxwsfJYOLxhrSXhHP_T7iw-HXI9f2WVkzYxvQ,135
95
+ dycw_utilities-0.150.6.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
96
+ dycw_utilities-0.150.6.dist-info/RECORD,,
utilities/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.150.4"
3
+ __version__ = "0.150.6"
utilities/postgres.py CHANGED
@@ -70,7 +70,7 @@ async def pg_dump(
70
70
  )
71
71
  if dry_run:
72
72
  if logger is not None:
73
- get_logger(logger=logger).info("Would run %r", str(cmd))
73
+ get_logger(logger=logger).info("Would run:\n\t%r", str(cmd))
74
74
  return
75
75
  with temp_environ(PGPASSWORD=url.password), Timer() as timer: # pragma: no cover
76
76
  try:
@@ -194,6 +194,7 @@ async def restore(
194
194
  database: str | None = None,
195
195
  data_only: bool = False,
196
196
  clean: bool = False,
197
+ create: bool = False,
197
198
  jobs: int | None = None,
198
199
  schema: MaybeListStr | None = None,
199
200
  schema_exc: MaybeListStr | None = None,
@@ -211,6 +212,7 @@ async def restore(
211
212
  database=database,
212
213
  data_only=data_only,
213
214
  clean=clean,
215
+ create=create,
214
216
  jobs=jobs,
215
217
  schema=schema,
216
218
  schema_exc=schema_exc,
@@ -220,7 +222,7 @@ async def restore(
220
222
  )
221
223
  if dry_run:
222
224
  if logger is not None:
223
- get_logger(logger=logger).info("Would run %r", str(cmd))
225
+ get_logger(logger=logger).info("Would run:\n\t%r", str(cmd))
224
226
  return
225
227
  with temp_environ(PGPASSWORD=url.password), Timer() as timer: # pragma: no cover
226
228
  try: