adapta 3.5.14__py3-none-any.whl → 3.5.16__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.
adapta/_version.py CHANGED
@@ -1 +1 @@
1
- __version__ = '3.5.14'
1
+ __version__ = '3.5.16'
adapta/logs/_base.py CHANGED
@@ -43,18 +43,21 @@ class SemanticLogger(_InternalLogger):
43
43
  def stop(self) -> None:
44
44
  pass
45
45
 
46
- def __init__(self, fixed_template: dict[str, dict[str, str]] | None = None, fixed_template_delimiter=", "):
46
+ def __init__(
47
+ self,
48
+ fixed_template: dict[str, dict[str, str]] | None = None,
49
+ fixed_template_delimiter=", ",
50
+ global_tags: dict[str, str] | None = None,
51
+ ):
47
52
  """
48
53
  Creates a new instance of a SemanticLogger
49
54
 
50
55
  :param fixed_template: Additional template to append to message templates provided via logging methods.
51
56
  :param fixed_template_delimiter: Optional delimiter to use when appending fixed templates.
52
57
  """
53
- super().__init__(fixed_template, fixed_template_delimiter)
58
+ super().__init__(fixed_template, fixed_template_delimiter, global_tags)
54
59
  self._loggers: dict[str, logging.Logger] = {}
55
60
  self._default_log_source = None
56
- self._fixed_template = fixed_template
57
- self._fixed_template_delimiter = fixed_template_delimiter
58
61
  logging.setLoggerClass(MetadataLogger)
59
62
 
60
63
  def add_log_source(
@@ -137,6 +137,30 @@ class MlflowBasicClient:
137
137
  version=model_version,
138
138
  )
139
139
 
140
+ def delete_model_alias(self, model_name: str, alias: str):
141
+ """
142
+ inherited the deletion of model alias in Mlflow
143
+ :param model_name: model name
144
+ :param alias: alias name
145
+ """
146
+ self._client.delete_registered_model_alias(
147
+ name=model_name,
148
+ alias=alias,
149
+ )
150
+
151
+ def transition_model_alias(
152
+ self, model_name: str, old_alias: str, new_alias: str, model_version: str | None
153
+ ) -> None:
154
+ """
155
+ Mimics transition for model alias in Mlflow
156
+ :param model_name: model name
157
+ :param old_alias: old alias name
158
+ :param new_alias: new alias name
159
+ :param model_version: version of model
160
+ """
161
+ self.delete_model_alias(model_name=model_name, alias=old_alias)
162
+ self.set_model_alias(model_name=model_name, alias=new_alias, model_version=model_version)
163
+
140
164
  def set_model_version_tag(
141
165
  self,
142
166
  name: str,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adapta
3
- Version: 3.5.14
3
+ Version: 3.5.16
4
4
  Summary: Logging, data connectors, monitoring, secret handling and general lifehacks to make data people lives easier.
5
5
  License: Apache-2.0
6
6
  License-File: LICENSE
@@ -1,12 +1,12 @@
1
1
  adapta/__init__.py,sha256=JSGFwL-Pu--FtbY2HOBYcepwDNOJS10RIR9dL88Iye4,696
2
- adapta/_version.py,sha256=SwMwM6zXFsaHCwyOqiN8AMdBGP8q5BsPOeXcl_FlehY,23
2
+ adapta/_version.py,sha256=2iSlkdwPzk95gAtAxrcQVFLvjWw1jFqGZs-PB4L39gg,23
3
3
  adapta/connectors/__init__.py,sha256=H5mtUGjVkaNkhW-nH7_QElRpfcijduVrW8JsrJHjNnA,631
4
4
  adapta/connectors/service_bus/__init__.py,sha256=GDDJ_Y8ua08kZuav4dlrdUzf1ayjAjz2M34eplWD-e8,727
5
5
  adapta/connectors/service_bus/_connector.py,sha256=mkvDag9Zd2PYj0fSxStnPtFDjmYcAYOBPr7O62LyDSI,1913
6
6
  adapta/logs/README.md,sha256=BFdwFT83v6KiMbDn_EDtvbVh9va6tpKLaZXUcUKf1Sk,4111
7
7
  adapta/logs/__init__.py,sha256=ugEGJ7I0fOfrpFRRFRvPfoM4eL4onT7C4ahq3LhKwpQ,816
8
8
  adapta/logs/_async_logger.py,sha256=2T_IBdym7aaXf8K2-laO-JRohAO1BZXPSt7hDs_tssg,8278
9
- adapta/logs/_base.py,sha256=iJDbNXCOJd3AMkFGsZkC9yDPickKda77meVagU1hado,7469
9
+ adapta/logs/_base.py,sha256=osQ9WX6Let4dfmzomPyH8jfFhSWK0WS9BqpY9UrvEsI,7452
10
10
  adapta/logs/_internal.py,sha256=fEKA_P9wtp0xRxB_bxVgfnfRey7mwexSbNE3iJ9nV_o,2997
11
11
  adapta/logs/_internal_logger.py,sha256=Dc7sk7kOZhjWEYihMxkY6j4ynCdWNoX-9KLJ6MKobVk,14165
12
12
  adapta/logs/_logger_interface.py,sha256=Cec8VyNYsBCDjwWzPmNblaIBx0WOPWSczOyaVkSVWGA,3445
@@ -25,7 +25,7 @@ adapta/metrics/providers/void_provider.py,sha256=UAIe3zV17r6NwJqFMp5hovFZ3NwX-IJ
25
25
  adapta/ml/__init__.py,sha256=2BiAuwbrSVWt-BWSyuHyPaZXBpzMho8RESrG6JR1vDE,686
26
26
  adapta/ml/_model.py,sha256=XtFKWrxJfyU-EuBlJm0TcupmEs0mFmPunAkMqrmRGBE,1256
27
27
  adapta/ml/mlflow/__init__.py,sha256=E8YF2HHmfLyVW6TxkM3cUBhaQYd76M8bcT2HOFgBZ8E,732
28
- adapta/ml/mlflow/_client.py,sha256=Gm0zGUiiY10OXJN_LUwsAT-ezozmYmE_A26djd3uFGY,8672
28
+ adapta/ml/mlflow/_client.py,sha256=QVORJVHxiHMtbquiU5ZW39FV78uW5fgEdd4B_wd9B3M,9553
29
29
  adapta/ml/mlflow/_functions.py,sha256=25qlniT2TFSyOcHVjwlXQgG0Ry5ZQqsu7vZ3MfW3CMM,5496
30
30
  adapta/process_communication/__init__.py,sha256=4JT3Pr6eyTZmSyEUmK-8JryG3tLpu2EIrPz6RSaOW5I,707
31
31
  adapta/process_communication/_models.py,sha256=lzdGKC2iZN8pi0v8dFvztlSbKpP5FswlIpH4chFsK8U,3465
@@ -140,7 +140,7 @@ adapta/utils/decorators/_rate_limit.py,sha256=lzQ81uuaPg-_c5CkvztIetkglbmwdQNb6x
140
140
  adapta/utils/metaframe.py,sha256=0MANP7c7jaHcVw3TvOTq4Taz4Pa2u97HqHKp4ml2nxo,5185
141
141
  adapta/utils/python_typing/__init__.py,sha256=AhCDfacq0Jwz9rGGkauL4NaozJeYad5IUpCMif056rQ,86
142
142
  adapta/utils/python_typing/_functions.py,sha256=YR3YfsvNvB-IX848cMnSty2tLeq1zExARD44AELtfik,541
143
- adapta-3.5.14.dist-info/METADATA,sha256=C16RFWPJySbL4H3bSnEp3jm5f7mwcog4gLlTG2Un42A,3591
144
- adapta-3.5.14.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
145
- adapta-3.5.14.dist-info/licenses/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
146
- adapta-3.5.14.dist-info/RECORD,,
143
+ adapta-3.5.16.dist-info/METADATA,sha256=82SgPmvaCncvn2-S6XqHl7xLw1BAFLYTgEHQ2sqcYQY,3591
144
+ adapta-3.5.16.dist-info/WHEEL,sha256=kJCRJT_g0adfAJzTx2GUMmS80rTJIVHRCfG0DQgLq3o,88
145
+ adapta-3.5.16.dist-info/licenses/LICENSE,sha256=0gS6zXsPp8qZhzi1xaGCIYPzb_0e8on7HCeFJe8fOpw,10693
146
+ adapta-3.5.16.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.2.1
2
+ Generator: poetry-core 2.3.1
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any