arthur-common 2.4.3__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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.4.3
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
@@ -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.3.dist-info/METADATA,sha256=IwWpahpZ5U0mEeZ1YdeR-nBn0tOeYM938q8wIn8Vb-0,2146
48
- arthur_common-2.4.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
- arthur_common-2.4.3.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,,