fmtr.tools 1.3.58__py3-none-any.whl → 1.3.60__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.

Potentially problematic release.


This version of fmtr.tools might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  from fmtr.tools.import_tools import MissingExtraMockModule
2
2
 
3
3
  try:
4
- from python_on_whales import docker as client
4
+ from python_on_whales import DockerClient
5
5
  except ModuleNotFoundError as exception:
6
- client = MissingExtraMockModule('docker.client', exception)
6
+ DockerClient = MissingExtraMockModule('docker.client', exception)
@@ -45,7 +45,20 @@ class Cell(ft.DataCell):
45
45
  Cell contents text
46
46
 
47
47
  """
48
- return ft.Text(str(self.value))
48
+
49
+ return ft.Text(str(self.value), color=self.color)
50
+
51
+ @property
52
+ def color(self):
53
+ """
54
+
55
+ Basic conditional formatting
56
+
57
+ """
58
+ if self.value is None:
59
+ return ft.Colors.GREY
60
+ else:
61
+ return None
49
62
 
50
63
  @property
51
64
  def gesture_detector(self):
@@ -115,7 +128,16 @@ class Column(ft.DataColumn):
115
128
  Cell contents text
116
129
 
117
130
  """
118
- return ft.Text(str(self.col_name))
131
+ return ft.Text(str(self.col_name), weight=self.weight)
132
+
133
+ @property
134
+ def weight(self):
135
+ """
136
+
137
+ Default bold headers
138
+
139
+ """
140
+ return ft.FontWeight.BOLD
119
141
 
120
142
 
121
143
  class Table(ft.DataTable):
fmtr/tools/version CHANGED
@@ -1 +1 @@
1
- 1.3.58
1
+ 1.3.60
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fmtr.tools
3
- Version: 1.3.58
3
+ Version: 1.3.60
4
4
  Summary: Collection of high-level tools to simplify everyday development tasks, with a focus on AI/ML
5
5
  Home-page: https://github.com/fmtr/fmtr.tools
6
6
  Author: Frontmatter
@@ -154,68 +154,68 @@ Provides-Extra: db-document
154
154
  Requires-Dist: beanie[odm]; extra == "db-document"
155
155
  Requires-Dist: motor; extra == "db-document"
156
156
  Provides-Extra: all
157
- Requires-Dist: pydevd-pycharm~=251.25410.159; extra == "all"
158
- Requires-Dist: playwright; extra == "all"
159
- Requires-Dist: torchaudio; extra == "all"
160
- Requires-Dist: google-auth-oauthlib; extra == "all"
161
- Requires-Dist: odfpy; extra == "all"
162
- Requires-Dist: setuptools; extra == "all"
163
157
  Requires-Dist: yamlscript; extra == "all"
164
- Requires-Dist: sentence_transformers; extra == "all"
165
- Requires-Dist: flet-webview; extra == "all"
166
- Requires-Dist: google-auth; extra == "all"
167
- Requires-Dist: openai; extra == "all"
168
- Requires-Dist: distributed; extra == "all"
169
- Requires-Dist: pydantic-ai[logfire,openai]; extra == "all"
170
158
  Requires-Dist: Unidecode; extra == "all"
171
- Requires-Dist: regex; extra == "all"
172
- Requires-Dist: pydantic-settings; extra == "all"
173
- Requires-Dist: uvicorn[standard]; extra == "all"
174
- Requires-Dist: pymupdf; extra == "all"
175
- Requires-Dist: contexttimer; extra == "all"
176
- Requires-Dist: tabulate; extra == "all"
177
- Requires-Dist: pytest-cov; extra == "all"
178
- Requires-Dist: flet[all]; extra == "all"
179
159
  Requires-Dist: google-auth-httplib2; extra == "all"
180
- Requires-Dist: appdirs; extra == "all"
181
- Requires-Dist: semver; extra == "all"
182
- Requires-Dist: json_repair; extra == "all"
183
- Requires-Dist: pandas; extra == "all"
184
- Requires-Dist: sre_yield; extra == "all"
160
+ Requires-Dist: google-auth; extra == "all"
161
+ Requires-Dist: faker; extra == "all"
162
+ Requires-Dist: bokeh; extra == "all"
185
163
  Requires-Dist: logfire[fastapi]; extra == "all"
186
- Requires-Dist: google-api-python-client; extra == "all"
187
- Requires-Dist: httpx_retries; extra == "all"
188
- Requires-Dist: motor; extra == "all"
189
- Requires-Dist: dask[bag]; extra == "all"
190
- Requires-Dist: dnspython[doh]; extra == "all"
191
- Requires-Dist: logfire[httpx]; extra == "all"
192
- Requires-Dist: huggingface_hub; extra == "all"
164
+ Requires-Dist: pydevd-pycharm~=251.25410.159; extra == "all"
165
+ Requires-Dist: pytest-cov; extra == "all"
193
166
  Requires-Dist: pydantic-extra-types; extra == "all"
194
- Requires-Dist: faker; extra == "all"
195
- Requires-Dist: beanie[odm]; extra == "all"
196
- Requires-Dist: pycountry; extra == "all"
197
- Requires-Dist: openpyxl; extra == "all"
198
- Requires-Dist: tinynetrc; extra == "all"
167
+ Requires-Dist: google-auth-oauthlib; extra == "all"
168
+ Requires-Dist: peft; extra == "all"
169
+ Requires-Dist: ollama; extra == "all"
170
+ Requires-Dist: tabulate; extra == "all"
171
+ Requires-Dist: filetype; extra == "all"
172
+ Requires-Dist: pymupdf4llm; extra == "all"
173
+ Requires-Dist: dask[bag]; extra == "all"
199
174
  Requires-Dist: httpx; extra == "all"
175
+ Requires-Dist: openpyxl; extra == "all"
176
+ Requires-Dist: fastapi; extra == "all"
200
177
  Requires-Dist: deepdiff; extra == "all"
201
- Requires-Dist: bokeh; extra == "all"
178
+ Requires-Dist: semver; extra == "all"
179
+ Requires-Dist: diskcache; extra == "all"
180
+ Requires-Dist: logfire[httpx]; extra == "all"
181
+ Requires-Dist: json_repair; extra == "all"
182
+ Requires-Dist: deepmerge; extra == "all"
183
+ Requires-Dist: pyyaml; extra == "all"
184
+ Requires-Dist: flet[all]; extra == "all"
185
+ Requires-Dist: uvicorn[standard]; extra == "all"
186
+ Requires-Dist: pymupdf; extra == "all"
202
187
  Requires-Dist: pydantic; extra == "all"
203
- Requires-Dist: transformers[sentencepiece]; extra == "all"
188
+ Requires-Dist: sentence_transformers; extra == "all"
189
+ Requires-Dist: setuptools; extra == "all"
204
190
  Requires-Dist: torchvision; extra == "all"
205
- Requires-Dist: cachetools; extra == "all"
206
- Requires-Dist: diskcache; extra == "all"
191
+ Requires-Dist: huggingface_hub; extra == "all"
192
+ Requires-Dist: flet-webview; extra == "all"
207
193
  Requires-Dist: html2text; extra == "all"
208
- Requires-Dist: flet-video; extra == "all"
209
- Requires-Dist: logfire; extra == "all"
210
- Requires-Dist: filetype; extra == "all"
194
+ Requires-Dist: motor; extra == "all"
195
+ Requires-Dist: pydantic-settings; extra == "all"
196
+ Requires-Dist: sre_yield; extra == "all"
197
+ Requires-Dist: appdirs; extra == "all"
198
+ Requires-Dist: dnspython[doh]; extra == "all"
199
+ Requires-Dist: regex; extra == "all"
211
200
  Requires-Dist: python-on-whales; extra == "all"
212
- Requires-Dist: peft; extra == "all"
213
- Requires-Dist: pyyaml; extra == "all"
214
- Requires-Dist: pymupdf4llm; extra == "all"
201
+ Requires-Dist: pandas; extra == "all"
202
+ Requires-Dist: playwright; extra == "all"
203
+ Requires-Dist: contexttimer; extra == "all"
204
+ Requires-Dist: google-api-python-client; extra == "all"
205
+ Requires-Dist: pydantic-ai[logfire,openai]; extra == "all"
206
+ Requires-Dist: openai; extra == "all"
207
+ Requires-Dist: pycountry; extra == "all"
208
+ Requires-Dist: cachetools; extra == "all"
209
+ Requires-Dist: httpx_retries; extra == "all"
210
+ Requires-Dist: distributed; extra == "all"
211
+ Requires-Dist: transformers[sentencepiece]; extra == "all"
215
212
  Requires-Dist: tokenizers; extra == "all"
216
- Requires-Dist: ollama; extra == "all"
217
- Requires-Dist: fastapi; extra == "all"
218
- Requires-Dist: deepmerge; extra == "all"
213
+ Requires-Dist: logfire; extra == "all"
214
+ Requires-Dist: torchaudio; extra == "all"
215
+ Requires-Dist: flet-video; extra == "all"
216
+ Requires-Dist: beanie[odm]; extra == "all"
217
+ Requires-Dist: odfpy; extra == "all"
218
+ Requires-Dist: tinynetrc; extra == "all"
219
219
  Dynamic: author
220
220
  Dynamic: author-email
221
221
  Dynamic: description
@@ -45,7 +45,7 @@ fmtr/tools/tabular_tools.py,sha256=mw6vOij1Ch-pVAyHMPtm5zj__ULZN_TKeBYOfj33wFM,1
45
45
  fmtr/tools/tokenization_tools.py,sha256=me-IBzSLyNYejLybwjO9CNB6Mj2NYfKPaOVThXyaGNg,4268
46
46
  fmtr/tools/tools.py,sha256=CAsApa1YwVdNE6H66Vjivs_mXYvOas3rh7fPELAnTpk,795
47
47
  fmtr/tools/unicode_tools.py,sha256=yS_9wpu8ogNoiIL7s1G_8bETFFO_YQlo4LNPv1NLDeY,52
48
- fmtr/tools/version,sha256=gTkH6n0qoR1Np3LQ-ZkoChzwHlEYbg59j3zWlem00ME,6
48
+ fmtr/tools/version,sha256=IXmFJo48YhTLScaJd_aidWKXC2ncdolMTReBD7RNA9A,6
49
49
  fmtr/tools/webhook_tools.py,sha256=q3pVJ1NCem2SrMuFcLxiWd7DibFs7Q-uGtojfXd3Qcg,380
50
50
  fmtr/tools/yaml_tools.py,sha256=Bhhyd6GQVKO72Lp8ky7bAUjIB_65Hdh0Q45SKIEe6S8,1901
51
51
  fmtr/tools/ai_tools/__init__.py,sha256=O8VRlPnnQCncg2ZZ2l_VdWLJf4jkKH6dkZFVbv6o7IM,388
@@ -58,7 +58,7 @@ fmtr/tools/dns_tools/client.py,sha256=IBbd7Xgx9ExTn_EPoL7ts9JfXokHHuOiD9m4K6tl1Q
58
58
  fmtr/tools/dns_tools/dm.py,sha256=Lp1HaF7rpVtL_Ji4Bd32B29105H9ZKQ8AcVj_AB7nsA,6678
59
59
  fmtr/tools/dns_tools/proxy.py,sha256=gCWfH1pyWjj8xnJ8Pm4id7bsBWqcar3dQ9PeP5XjRXY,1624
60
60
  fmtr/tools/dns_tools/server.py,sha256=_Y5w5bGHhBI32fYWl-SmnOALAw_eF9fEbmrOqqgzSq8,4263
61
- fmtr/tools/docker_tools/__init__.py,sha256=yEw5v6aqA_PSiEu7uTvq2DhXiZ2DmA9LqV4R7qAxI_4,220
61
+ fmtr/tools/docker_tools/__init__.py,sha256=NzUFbOX3eQCJ9ex0YL7xZPKLb65HngvZCBRTz839A8Y,222
62
62
  fmtr/tools/entrypoints/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
63
  fmtr/tools/entrypoints/cache_hfh.py,sha256=fQNs4J9twQuZH_Yj98-oOvEX7-LrSUP3kO8nzw2HrHs,60
64
64
  fmtr/tools/entrypoints/ep_test.py,sha256=B8HfWISfSgw_xVX475CbJGh_QnpOe9MH65H8qGjTWbY,46
@@ -67,7 +67,7 @@ fmtr/tools/entrypoints/remote_debug_test.py,sha256=wmKg9o2pQq7eqeHmaO8oviujNgtns
67
67
  fmtr/tools/entrypoints/shell_debug.py,sha256=0No3tAg9Ri4_vvSlQCUtAY-11HR0nE45i0VVtiAViwY,106
68
68
  fmtr/tools/interface_tools/__init__.py,sha256=_bgZRTqmygtYM75o6_zyQRhT_XZnDERZEHmsYVrzyxw,393
69
69
  fmtr/tools/interface_tools/context.py,sha256=VpoR_ZCndDbwS0AzIPKi1hB2QckwJU5dJqAJavF3mqk,151
70
- fmtr/tools/interface_tools/controls.py,sha256=rLa80ujAcwPEBRHjV_pAoSsVlmibtj0jeYyzznQRf-Q,2663
70
+ fmtr/tools/interface_tools/controls.py,sha256=KYjo-TLQuoh8gCgw6saZs6Sz1zDwCm5wfIgqta4mKrE,3030
71
71
  fmtr/tools/interface_tools/interface_tools.py,sha256=GXnBkSO_Y-F7E5sErJdyyEkO3PyTz97yQBXlTEw_Ufw,4295
72
72
  fmtr/tools/path_tools/__init__.py,sha256=XrJXt7Zzo90tYUVksMlDfKkWt775zJ9OSi2NbhnqMDI,459
73
73
  fmtr/tools/path_tools/app_path_tools.py,sha256=JrJvtTDd_gkCKcZtBCDTMktsM77PZwGV_hzQX0g5GU8,1722
@@ -85,9 +85,9 @@ fmtr/tools/tests/test_path.py,sha256=AkZQa6_8BQ-VaCyL_J-iKmdf2ZaM-xFYR37Kun3k4_g
85
85
  fmtr/tools/tests/test_yaml.py,sha256=jc0TwwKu9eC0LvFGNMERdgBue591xwLxYXFbtsRwXVM,287
86
86
  fmtr/tools/version_tools/__init__.py,sha256=cjE6nO6AoVOUp3RwgTbqL9wiw8J1l2pHJOz6Gn6bxjA,326
87
87
  fmtr/tools/version_tools/version_tools.py,sha256=Hcc6yferZS1hHbugRTdiHhSNmXEEG0hjCiTTXKna-YY,1127
88
- fmtr_tools-1.3.58.dist-info/licenses/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
89
- fmtr_tools-1.3.58.dist-info/METADATA,sha256=dIUHLfjVGVJV8Kjf1XFUgGfDdUU7D7E5urJbLt3BCRQ,17455
90
- fmtr_tools-1.3.58.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
91
- fmtr_tools-1.3.58.dist-info/entry_points.txt,sha256=h-r__Xh5njtFqreMLg6cGuTFS4Qh-QqJPU1HB-_BS-Q,357
92
- fmtr_tools-1.3.58.dist-info/top_level.txt,sha256=LXem9xCgNOD72tE2gRKESdiQTL902mfFkwWb6-dlwEE,5
93
- fmtr_tools-1.3.58.dist-info/RECORD,,
88
+ fmtr_tools-1.3.60.dist-info/licenses/LICENSE,sha256=FW9aa6vVN5IjRQWLT43hs4_koYSmpcbIovlKeAJ0_cI,10757
89
+ fmtr_tools-1.3.60.dist-info/METADATA,sha256=YzIabPQ0qKI4BK807t4bkM8Zz52QKC2-ouYKXJu2XsM,17455
90
+ fmtr_tools-1.3.60.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
91
+ fmtr_tools-1.3.60.dist-info/entry_points.txt,sha256=h-r__Xh5njtFqreMLg6cGuTFS4Qh-QqJPU1HB-_BS-Q,357
92
+ fmtr_tools-1.3.60.dist-info/top_level.txt,sha256=LXem9xCgNOD72tE2gRKESdiQTL902mfFkwWb6-dlwEE,5
93
+ fmtr_tools-1.3.60.dist-info/RECORD,,