arthur-common 2.4.2__py3-none-any.whl → 2.4.4__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 arthur-common might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
+ import math
3
4
  from typing import Any, Dict, List, Optional
4
5
 
5
6
  from pydantic import BaseModel, ConfigDict, Field, field_validator
@@ -98,7 +99,7 @@ class PaginationParameters(BaseModel):
98
99
  page: int = 0
99
100
 
100
101
  def calculate_total_pages(self, total_items_count: int) -> int:
101
- return total_items_count // self.page_size + 1
102
+ return math.ceil(total_items_count / self.page_size)
102
103
 
103
104
 
104
105
  class PIIConfig(BaseModel):
@@ -624,6 +624,8 @@ class SpanWithMetricsResponse(BaseModel):
624
624
  start_time: datetime
625
625
  end_time: datetime
626
626
  task_id: Optional[str] = None
627
+ session_id: Optional[str] = None
628
+ status_code: str = Field(description="Status code for the span (Unset, Error, Ok)")
627
629
  created_at: datetime
628
630
  updated_at: datetime
629
631
  raw_data: dict[str, Any]
@@ -650,6 +652,8 @@ class NestedSpanWithMetricsResponse(BaseModel):
650
652
  start_time: datetime
651
653
  end_time: datetime
652
654
  task_id: Optional[str] = None
655
+ session_id: Optional[str] = None
656
+ status_code: str = Field(description="Status code for the span (Unset, Error, Ok)")
653
657
  created_at: datetime
654
658
  updated_at: datetime
655
659
  raw_data: dict[str, Any]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.4.2
3
+ Version: 2.4.4
4
4
  Summary: Utility code common to Arthur platform components.
5
5
  License: MIT
6
6
  Author: Arthur
@@ -22,7 +22,7 @@ arthur_common/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
22
22
  arthur_common/config/config.py,sha256=fcpjOYjPKu4Duk63CuTHrOWKQKAlAhVUR60kF_2_Xog,1247
23
23
  arthur_common/config/settings.yaml,sha256=0CrygUwJzC5mGcO5Xnvv2ttp-P7LIsx682jllYA96NQ,161
24
24
  arthur_common/models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
- arthur_common/models/common_schemas.py,sha256=31Br7DbIgrwHwzgiyMXrgPYrANhqSqle7kmismcy4TY,6770
25
+ arthur_common/models/common_schemas.py,sha256=IvzKpdQENidIWREKo6-vGUVV-Gsw3PyoIeZLg2PzC-M,6788
26
26
  arthur_common/models/connectors.py,sha256=gRdX4lNz0ObU64FqMmoffHVBwEgO3JfOf3wjn3tKv0Q,2264
27
27
  arthur_common/models/constants.py,sha256=munkU0LrLsDs9BtAfozzw30FCguIowmAUKg_9vqwX24,1049
28
28
  arthur_common/models/datasets.py,sha256=7p1tyJEPwXjBs2ZRoai8hTzNl6MK9jU1DluzASApE_4,254
@@ -31,7 +31,7 @@ arthur_common/models/metric_schemas.py,sha256=Xf-1RTzg7iYtnBMLkUUUuMPzAujzzNvQx_
31
31
  arthur_common/models/metrics.py,sha256=mCa0aN-nuNHYcqGfkyKFeriI0krz0-ScgmXWXHlKoEI,11109
32
32
  arthur_common/models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
33
  arthur_common/models/request_schemas.py,sha256=LEybzPoOzaaTyua48mr9sAVzrBK6dIeYhR158kMp0o8,29749
34
- arthur_common/models/response_schemas.py,sha256=qc6DDfY4GxtXtUiBllsQglvPnZzhe2Vw8D-S76B_r_0,25393
34
+ arthur_common/models/response_schemas.py,sha256=kY3NZceFaBRkxGDF5-W1CYDjtwFdf3xyLxdzrwHlmJI,25643
35
35
  arthur_common/models/schema_definitions.py,sha256=dcUSLjBmvyloStcBFmT_rHdXbKdvA8Yxi_avYUbps3E,16876
36
36
  arthur_common/models/task_job_specs.py,sha256=p7jsSb97ylHYNkwoHXNOJvx2zcnh2kxLeh3m0pddo4M,3442
37
37
  arthur_common/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -44,6 +44,6 @@ arthur_common/tools/functions.py,sha256=FWL4eWO5-vLp86WudT-MGUKvf2B8f02IdoXQFKd6
44
44
  arthur_common/tools/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
45
  arthur_common/tools/schema_inferer.py,sha256=8ehIqAxuGlgM08RtwPB43a7TfenZyEIf1R0p1RYrkng,4920
46
46
  arthur_common/tools/time_utils.py,sha256=4gfiu9NXfvPZltiVNLSIQGylX6h2W0viNi9Kv4bKyfw,1410
47
- arthur_common-2.4.2.dist-info/METADATA,sha256=6DHeBJn5UW85zbPau25hNrqze8DKjJqCWQYwBpmVBsI,2146
48
- arthur_common-2.4.2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
- arthur_common-2.4.2.dist-info/RECORD,,
47
+ arthur_common-2.4.4.dist-info/METADATA,sha256=V7287hf9a8IyABMgznBDxQE7ri3oCRjHDTlMW3gzl4E,2146
48
+ arthur_common-2.4.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
+ arthur_common-2.4.4.dist-info/RECORD,,