hammad-python 0.0.17__py3-none-any.whl → 0.0.19__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.
- hammad/__init__.py +5 -3
- hammad/logging/logger.py +2 -1
- hammad/py.typed +0 -0
- {hammad_python-0.0.17.dist-info → hammad_python-0.0.19.dist-info}/METADATA +1 -1
- {hammad_python-0.0.17.dist-info → hammad_python-0.0.19.dist-info}/RECORD +7 -6
- {hammad_python-0.0.17.dist-info → hammad_python-0.0.19.dist-info}/WHEEL +0 -0
- {hammad_python-0.0.17.dist-info → hammad_python-0.0.19.dist-info}/licenses/LICENSE +0 -0
hammad/__init__.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
"""hammad-python"""
|
2
2
|
|
3
|
+
from __future__ import annotations
|
4
|
+
|
3
5
|
from typing import TYPE_CHECKING
|
4
6
|
from ._internal import create_getattr_importer as __hammad_importer__
|
5
7
|
|
@@ -104,7 +106,7 @@ if TYPE_CHECKING:
|
|
104
106
|
)
|
105
107
|
|
106
108
|
|
107
|
-
__all__ =
|
109
|
+
__all__ = [
|
108
110
|
# hammad.cache
|
109
111
|
"cached",
|
110
112
|
"Cache",
|
@@ -168,11 +170,11 @@ __all__ = (
|
|
168
170
|
"run_web_search",
|
169
171
|
"run_news_search",
|
170
172
|
"extract_web_page_links",
|
171
|
-
|
173
|
+
]
|
172
174
|
|
173
175
|
|
174
176
|
__getattr__ = __hammad_importer__(__all__)
|
175
177
|
|
176
178
|
|
177
179
|
def __dir__() -> list[str]:
|
178
|
-
return
|
180
|
+
return __all__
|
hammad/logging/logger.py
CHANGED
@@ -241,7 +241,8 @@ class RichLoggerFormatter(_logging.Formatter):
|
|
241
241
|
record.message = record.getMessage()
|
242
242
|
|
243
243
|
# Now format with the styled values
|
244
|
-
|
244
|
+
formatted = self._style._fmt.format(**record.__dict__)
|
245
|
+
return formatted if formatted != 'None' else ''
|
245
246
|
|
246
247
|
def _build_renderable_style_string(self, style_dict: dict) -> str:
|
247
248
|
"""Build a rich markup style string from a CLIStyleRenderableSettings dictionary."""
|
hammad/py.typed
ADDED
File without changes
|
@@ -1,5 +1,6 @@
|
|
1
|
-
hammad/__init__.py,sha256=
|
1
|
+
hammad/__init__.py,sha256=UpuJ5PGj4xyr9kWfqz_WQODO9D9Va77d3YyY2aOGfmY,3649
|
2
2
|
hammad/_internal.py,sha256=00ZXmXIlE3P_cewYrPsJuO38vYqhHY2XnFzFpzXgoyY,7871
|
3
|
+
hammad/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
4
|
hammad/cache/__init__.py,sha256=29vI8UkVITtiEe7fTr9UR5Q0lV7tr_SVe7tLlJmm1Ks,954
|
4
5
|
hammad/cache/base_cache.py,sha256=kYJS2IcQtxhzT7BQBFtOWnhw4VkvAapPhAVkfbW5IeY,6353
|
5
6
|
hammad/cache/cache.py,sha256=bzDXxjSolrSdIxqES2VMfVZZGTk_8k4x9n0AW4tlifs,4621
|
@@ -80,7 +81,7 @@ hammad/genai/language_models/_utils/_requests.py,sha256=_-6wK-3nkHYiVMEN2yxDur5A
|
|
80
81
|
hammad/genai/language_models/_utils/_structured_outputs.py,sha256=Uo60SMM6r6SDtdJnh2tmvdgs9znmmpRvzfMgnAkm8zs,3880
|
81
82
|
hammad/logging/__init__.py,sha256=VtskZx0bKEAJ9FHTMflhB1CzeFUxLpDT5HPgcecAXUo,701
|
82
83
|
hammad/logging/decorators.py,sha256=VbI1x3P4ft0-0BGjXq7nQgiuNqcXAA51CGmoSn47iSw,30122
|
83
|
-
hammad/logging/logger.py,sha256=
|
84
|
+
hammad/logging/logger.py,sha256=dVYJugByhJ9Qjzx0rF-l9aG6Jm2-ut5Oc5z9AkzHZUo,31536
|
84
85
|
hammad/mcp/__init__.py,sha256=5oTU-BLYjfz6fBHDH9cyWg3DpQ6Qar-jodbCR05SuWo,1123
|
85
86
|
hammad/mcp/client/__init__.py,sha256=i6aAYLoMkm78hOog4OssnT7jgkUXHDBQsdtvDLirSmA,795
|
86
87
|
hammad/mcp/client/client.py,sha256=ZAyeBEZKXg_ft7wirri1R4w4RXlMuet_z0yDuLxH3-M,20637
|
@@ -104,7 +105,7 @@ hammad/web/openapi/__init__.py,sha256=JhJQ6_laBmB2djIYFc0vgGha2GsdUe4FP1LDdZCQ5J
|
|
104
105
|
hammad/web/openapi/client.py,sha256=1pXz7KAO_0pN4kQZoWKWskXDYGiJ535TsPO1GGCiC0E,26816
|
105
106
|
hammad/web/search/__init__.py,sha256=e9A6znPIiZCz-4secyHbUs0uUGf5yAqW6wGacgx961U,24
|
106
107
|
hammad/web/search/client.py,sha256=T1--L-EWe8AA9nZPxEehhHTNmWkGCcbQrhZxY84zTYs,36964
|
107
|
-
hammad_python-0.0.
|
108
|
-
hammad_python-0.0.
|
109
|
-
hammad_python-0.0.
|
110
|
-
hammad_python-0.0.
|
108
|
+
hammad_python-0.0.19.dist-info/METADATA,sha256=ajI9f7-fdX0z3ZWnAemv1KBT80g9RaWAWqMk94HCz18,6214
|
109
|
+
hammad_python-0.0.19.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
110
|
+
hammad_python-0.0.19.dist-info/licenses/LICENSE,sha256=h74yFUWjbBaodcWG5wNmm30npjl8obVcxD-1nQfUp2I,1069
|
111
|
+
hammad_python-0.0.19.dist-info/RECORD,,
|
File without changes
|
File without changes
|