dycw-utilities 0.109.10__py3-none-any.whl → 0.109.12__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,13 +1,12 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dycw-utilities
3
- Version: 0.109.10
3
+ Version: 0.109.12
4
4
  Author-email: Derek Wan <d.wan@icloud.com>
5
5
  License-File: LICENSE
6
6
  Requires-Python: >=3.12
7
- Requires-Dist: polars-ols>=0.3.5
8
7
  Requires-Dist: typing-extensions<4.14,>=4.13.1
9
8
  Provides-Extra: test
10
- Requires-Dist: hypothesis<6.132,>=6.131.6; extra == 'test'
9
+ Requires-Dist: hypothesis<6.132,>=6.131.7; extra == 'test'
11
10
  Requires-Dist: pytest-asyncio<0.27,>=0.26.0; extra == 'test'
12
11
  Requires-Dist: pytest-cov<6.2,>=6.1.1; extra == 'test'
13
12
  Requires-Dist: pytest-instafail<0.6,>=0.5.0; extra == 'test'
@@ -63,7 +62,7 @@ Requires-Dist: fastapi<0.116,>=0.115.11; extra == 'zzz-test-fastapi'
63
62
  Requires-Dist: httpx<0.29,>=0.28.1; extra == 'zzz-test-fastapi'
64
63
  Requires-Dist: uvicorn<0.35,>=0.34.1; extra == 'zzz-test-fastapi'
65
64
  Provides-Extra: zzz-test-fpdf2
66
- Requires-Dist: fpdf2<2.9,>=2.8.2; extra == 'zzz-test-fpdf2'
65
+ Requires-Dist: fpdf2<2.9,>=2.8.3; extra == 'zzz-test-fpdf2'
67
66
  Requires-Dist: tzlocal<5.4,>=5.3.1; extra == 'zzz-test-fpdf2'
68
67
  Provides-Extra: zzz-test-functions
69
68
  Provides-Extra: zzz-test-functools
@@ -81,7 +80,7 @@ Provides-Extra: zzz-test-hypothesis
81
80
  Requires-Dist: aiosqlite<0.22,>=0.21.0; extra == 'zzz-test-hypothesis'
82
81
  Requires-Dist: asyncpg<0.31,>=0.30.0; extra == 'zzz-test-hypothesis'
83
82
  Requires-Dist: greenlet<3.3,>=3.2.0; extra == 'zzz-test-hypothesis'
84
- Requires-Dist: hypothesis<6.132,>=6.131.6; extra == 'zzz-test-hypothesis'
83
+ Requires-Dist: hypothesis<6.132,>=6.131.7; extra == 'zzz-test-hypothesis'
85
84
  Requires-Dist: luigi<3.7,>=3.6.0; extra == 'zzz-test-hypothesis'
86
85
  Requires-Dist: numpy<2.3,>=2.2.5; extra == 'zzz-test-hypothesis'
87
86
  Requires-Dist: pathvalidate<3.3,>=3.2.3; extra == 'zzz-test-hypothesis'
@@ -118,7 +117,7 @@ Provides-Extra: zzz-test-memory-profiler
118
117
  Requires-Dist: memory-profiler<0.62,>=0.61.0; extra == 'zzz-test-memory-profiler'
119
118
  Provides-Extra: zzz-test-modules
120
119
  Provides-Extra: zzz-test-more-itertools
121
- Requires-Dist: more-itertools<10.7,>=10.6.0; extra == 'zzz-test-more-itertools'
120
+ Requires-Dist: more-itertools<10.8,>=10.7.0; extra == 'zzz-test-more-itertools'
122
121
  Provides-Extra: zzz-test-numpy
123
122
  Requires-Dist: numpy<2.3,>=2.2.5; extra == 'zzz-test-numpy'
124
123
  Provides-Extra: zzz-test-operator
@@ -1,5 +1,5 @@
1
- utilities/__init__.py,sha256=rSepLbrv6OLPYSa8JNcDoi9ph_2-kk82P4d1Ebs7rTE,61
2
- utilities/altair.py,sha256=NSyDsm8QlkAGmsGdxVwCkHnPxt_35yJBa9Lg7bz9Ays,9054
1
+ utilities/__init__.py,sha256=V4hIkxHM85aC1wfztDqShV7oJrtyHnl9tBSs6Xoy5iM,61
2
+ utilities/altair.py,sha256=5WPwsHJoM-ZDh9iek4eSqf8_Ifb3w3KDwi7f2mrtXn4,9174
3
3
  utilities/astor.py,sha256=xuDUkjq0-b6fhtwjhbnebzbqQZAjMSHR1IIS5uOodVg,777
4
4
  utilities/asyncio.py,sha256=41oQUurWMvadFK5gFnaG21hMM0Vmfn2WS6OpC0R9mas,14757
5
5
  utilities/atomicwrites.py,sha256=geFjn9Pwn-tTrtoGjDDxWli9NqbYfy3gGL6ZBctiqSo,5393
@@ -85,7 +85,7 @@ utilities/warnings.py,sha256=yUgjnmkCRf6QhdyAXzl7u0qQFejhQG3PrjoSwxpbHrs,1819
85
85
  utilities/whenever.py,sha256=TjoTAJ1R27-rKXiXzdE4GzPidmYqm0W58XydDXp-QZM,17786
86
86
  utilities/zipfile.py,sha256=24lQc9ATcJxHXBPc_tBDiJk48pWyRrlxO2fIsFxU0A8,699
87
87
  utilities/zoneinfo.py,sha256=-DQz5a0Ikw9jfSZtL0BEQkXOMC9yGn_xiJYNCLMiqEc,1989
88
- dycw_utilities-0.109.10.dist-info/METADATA,sha256=dn1-Yy6KJLMDkEyWztQtPMjCF7DKg5bjdo7wRbZA2oA,13038
89
- dycw_utilities-0.109.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
90
- dycw_utilities-0.109.10.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
91
- dycw_utilities-0.109.10.dist-info/RECORD,,
88
+ dycw_utilities-0.109.12.dist-info/METADATA,sha256=zW9ZDqlnUhiKPhvPCB5I5C1Gs-dPC05fkGdFarYMcWM,13005
89
+ dycw_utilities-0.109.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
90
+ dycw_utilities-0.109.12.dist-info/licenses/LICENSE,sha256=gppZp16M6nSVpBbUBrNL6JuYfvKwZiKgV7XoKKsHzqo,1066
91
+ dycw_utilities-0.109.12.dist-info/RECORD,,
utilities/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  from __future__ import annotations
2
2
 
3
- __version__ = "0.109.10"
3
+ __version__ = "0.109.12"
utilities/altair.py CHANGED
@@ -62,6 +62,7 @@ def plot_dataframes(
62
62
  height: int = _HEIGHT,
63
63
  width: int = _WIDTH,
64
64
  interpolate: Any = Undefined,
65
+ title: str | None = None,
65
66
  ) -> VConcatChart:
66
67
  """Plot a DataFrame as a set of time series, with a multi-line tooltip."""
67
68
  import polars as pl
@@ -143,9 +144,12 @@ def plot_dataframes(
143
144
  for line, pts, rls, spec in zip(lines, points, rules, specs, strict=True)
144
145
  ]
145
146
  zoom = selection_interval(bind="scales", encodings=["x"])
146
- return (
147
+ chart = (
147
148
  vconcat(*layers).add_params(zoom).resolve_scale(color="independent", x="shared")
148
149
  )
150
+ if title is not None:
151
+ chart = chart.properties(title=title)
152
+ return chart
149
153
 
150
154
 
151
155
  def _plot_dataframes_get_spec(