haiway 0.19.1__py3-none-any.whl → 0.19.2__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.
@@ -244,14 +244,14 @@ def _logger_observability(
244
244
  if attributes:
245
245
  logger.log(
246
246
  level,
247
- f"{scope.unique_name} Recorded metric: {metric}={value}{unit or ''}"
247
+ f"{scope.unique_name} Recorded metric: {metric} = {value}{unit or ''}"
248
248
  f"\n{format_str(attributes)}",
249
249
  )
250
250
 
251
251
  else:
252
252
  logger.log(
253
253
  level,
254
- f"{scope.unique_name} Recorded metric: {metric}={value}{unit or ''}",
254
+ f"{scope.unique_name} Recorded metric: {metric} = {value}{unit or ''}",
255
255
  )
256
256
 
257
257
  def attributes_recording(
@@ -129,10 +129,10 @@ def LoggerObservability( # noqa: C901, PLR0915
129
129
 
130
130
  metric_str: str
131
131
  if attributes:
132
- metric_str = f"Metric: {metric}={value}{unit or ''}\n{format_str(attributes)}"
132
+ metric_str = f"Metric: {metric} = {value}{unit or ''}\n{format_str(attributes)}"
133
133
 
134
134
  else:
135
- metric_str = f"Metric: {metric}={value}{unit or ''}"
135
+ metric_str = f"Metric: {metric} = {value}{unit or ''}"
136
136
 
137
137
  if debug_context: # store only for summary
138
138
  scopes[scope.scope_id].store.append(metric_str)
@@ -119,7 +119,7 @@ def _mapping_str(
119
119
  continue # skip empty items
120
120
 
121
121
  if parts:
122
- return "{\n " + "\n".join(parts) + "\n}"
122
+ return "{\n" + "\n".join(parts) + "\n}"
123
123
 
124
124
  else:
125
125
  return "{}"
@@ -145,7 +145,7 @@ def _sequence_str(
145
145
  continue # skip empty elements
146
146
 
147
147
  if parts:
148
- return "[\n " + "\n".join(parts) + "\n]"
148
+ return "[\n" + "\n".join(parts) + "\n]"
149
149
 
150
150
  else:
151
151
  return "[]"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: haiway
3
- Version: 0.19.1
3
+ Version: 0.19.2
4
4
  Summary: Framework for dependency injection and state management within structured concurrency model.
5
5
  Project-URL: Homepage, https://miquido.com
6
6
  Project-URL: Repository, https://github.com/miquido/haiway.git
@@ -4,14 +4,14 @@ haiway/context/__init__.py,sha256=eoxqxUmFtkWLhc_gH6tqax9m90tSDie-jiP1BHruTdk,11
4
4
  haiway/context/access.py,sha256=vTh5BlduAGBjqnVyTgTUt08DG6SrnAakweAfIDBqx-0,18838
5
5
  haiway/context/disposables.py,sha256=xE8RZYsYgXiOZY_TjWR7UiPG6dirna6y2LBZvMwTkIs,2588
6
6
  haiway/context/identifier.py,sha256=i6nO-tozps7iDnpS5Se7CRch7hh6z2akjZthutxHte8,3943
7
- haiway/context/observability.py,sha256=yvNEd2vL49hUARgaeSphQiYvmnsWO3apb_Y64GcgvH4,14354
7
+ haiway/context/observability.py,sha256=u9NPejZGyGupqx3eH9IQKbcVcCFpZrg2ZAiov2FQiQ4,14358
8
8
  haiway/context/state.py,sha256=0oq7ctNO0urJd7rVzwwNtgpguoXuI6Tp1exfCsxrS2M,5981
9
9
  haiway/context/tasks.py,sha256=QOxFdjmMp4IYff0ihHElKLCQrcVksSJmxqTlOKfoH4o,2907
10
10
  haiway/context/types.py,sha256=WulPvpqUbI1vYyny-s2NItldDnk3zh1O-n_hGibFZRY,142
11
11
  haiway/helpers/__init__.py,sha256=dYqwWSBk8ss9XyXEF6YHZNPrCwU8VDM4nKtcz1tsvZI,583
12
12
  haiway/helpers/asynchrony.py,sha256=k_A0yCWUKSFfzYZ8WvqK4wqTMljv6ykMivmERrDLHIU,6266
13
13
  haiway/helpers/caching.py,sha256=4WX2Md5AOncduYB_RLLENI2s9C2zD5kNJgKZjMzPIGY,13257
14
- haiway/helpers/observability.py,sha256=VjT9ENMRrRck9QbYiMTtlf-BLwwf2d_wGMXbGFzdK1k,7839
14
+ haiway/helpers/observability.py,sha256=6UZMDR56kljGpou7qeDFl5XK-NkxZY0ob2nSFesO9TY,7843
15
15
  haiway/helpers/retries.py,sha256=unssUKBDOENvquh6R4Ud65TuSKl4mTHgZ5N_b7mAYa4,7533
16
16
  haiway/helpers/throttling.py,sha256=U6HJvSzffw47730VeiXxXSW4VVxpDx48k0oIAOpL-O4,4115
17
17
  haiway/helpers/timeouted.py,sha256=_M8diuD_GN49pl5KQA5fMKn4iUHsUuhkDSatAwWXiK8,3331
@@ -32,14 +32,14 @@ haiway/utils/__init__.py,sha256=HOylRgBEa0uNxEuPBupaJ28l4wEQiy98cGJi2Gtirr4,972
32
32
  haiway/utils/always.py,sha256=dd6jDQ1j4DpJjTKO1J2Tv5xS8X1LnMC4kQ0D7DtKUvw,1230
33
33
  haiway/utils/collections.py,sha256=pSBXhtLdhrLqmYo9YZEx716JI9S_sIztLJ5z5wi2d7Y,4162
34
34
  haiway/utils/env.py,sha256=gdZcQS9l82hKm4Jojy1vnE42s89JqPFbiYODAE8I2sA,5339
35
- haiway/utils/formatting.py,sha256=9BQR7Gc1dXbhwy_lSb8QSEDW2JlNtbS2O9eOznqELWQ,3108
35
+ haiway/utils/formatting.py,sha256=ri4w7ASwedIXqazcbEYT0ETuheXeBWAIhR04FN_R5bQ,3104
36
36
  haiway/utils/freezing.py,sha256=QsThd6FJ8TgErio7pCsHSnUKmVQbHZu6iEDYiqvJteo,614
37
37
  haiway/utils/logs.py,sha256=NuwoqKQnMNi1FMIA91cVFnAPefUFeg3UIT50IOl3sJk,1571
38
38
  haiway/utils/mimic.py,sha256=L5AS4WEL2aPMZAQZlvLvRzHl0cipI7ivky60_eL4iwY,1822
39
39
  haiway/utils/noop.py,sha256=f54PSLHGEwCQNYXQHkPAW5NDE-tk5yjzkNL1pZj0TJQ,344
40
40
  haiway/utils/queue.py,sha256=YTvCn3wgSwLJiLqolMx44sa3304Xkv3tJG77gvfWnZs,4114
41
41
  haiway/utils/stream.py,sha256=Mjhy2S-ZDR1g_NsgS_nuBA8AgVbhrGXKvG3wjJ5mCJQ,2826
42
- haiway-0.19.1.dist-info/METADATA,sha256=XJiRfIv8uKi-HLwfGAmFP9fxI7oiRSRaO1FCqNYBX5c,4527
43
- haiway-0.19.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
- haiway-0.19.1.dist-info/licenses/LICENSE,sha256=3phcpHVNBP8jsi77gOO0E7rgKeDeu99Pi7DSnK9YHoQ,1069
45
- haiway-0.19.1.dist-info/RECORD,,
42
+ haiway-0.19.2.dist-info/METADATA,sha256=WpHLg0EGGqd414dlNw86JSoHQ-5U_blo3zGSZ1vNyhU,4527
43
+ haiway-0.19.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
44
+ haiway-0.19.2.dist-info/licenses/LICENSE,sha256=3phcpHVNBP8jsi77gOO0E7rgKeDeu99Pi7DSnK9YHoQ,1069
45
+ haiway-0.19.2.dist-info/RECORD,,