arthur-common 2.3.0__py3-none-any.whl → 2.4.0__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.

@@ -122,20 +122,6 @@ class BaseAggregationParameterSchema(BaseModel):
122
122
  description="Description of the parameter.",
123
123
  )
124
124
 
125
- @field_validator("parameter_key")
126
- @classmethod
127
- def validate_parameter_key_allowed_characters(cls, v: str) -> str:
128
- if not v.replace("_", "").isalpha():
129
- raise ValueError("Parameter key can only contain letters and underscores.")
130
- return v
131
-
132
- @field_validator("friendly_name")
133
- @classmethod
134
- def validate_friendly_name_allowed_characters(cls, v: str) -> str:
135
- if not v.replace("_", "").replace(" ", "").isalpha():
136
- raise ValueError("Friendly name can only contain letters and underscores.")
137
- return v
138
-
139
125
 
140
126
  class MetricsParameterSchema(BaseAggregationParameterSchema):
141
127
  # specific to default metrics/Python metrics—not available to custom aggregations
@@ -309,10 +295,3 @@ class ReportedCustomAggregation(BaseReportedAggregation):
309
295
  dimension_columns: list[str] = Field(
310
296
  description="Name of any dimension columns returned from the SQL query. Max length is 1.",
311
297
  )
312
-
313
- @field_validator("dimension_columns")
314
- @classmethod
315
- def validate_dimension_columns_length(cls, v: list[str]) -> list[str]:
316
- if len(v) > 1:
317
- raise ValueError("Only one dimension column can be specified.")
318
- return v
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.3.0
3
+ Version: 2.4.0
4
4
  Summary: Utility code common to Arthur platform components.
5
5
  License: MIT
6
6
  Author: Arthur
@@ -28,7 +28,7 @@ arthur_common/models/constants.py,sha256=munkU0LrLsDs9BtAfozzw30FCguIowmAUKg_9vq
28
28
  arthur_common/models/datasets.py,sha256=7p1tyJEPwXjBs2ZRoai8hTzNl6MK9jU1DluzASApE_4,254
29
29
  arthur_common/models/enums.py,sha256=J2beHEMjLfOGgc-vh1aDpE7KmBGKzLoOUGYLtuciJro,3870
30
30
  arthur_common/models/metric_schemas.py,sha256=Xf-1RTzg7iYtnBMLkUUUuMPzAujzzNvQx_pe-CksEdU,2484
31
- arthur_common/models/metrics.py,sha256=87LUU7-8duoKCzaffw9GHMyjsKMNoxKa5n5Hyg_ZK1s,11931
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=ihrWK0SRVXsRmNaiLibbAEWi_RHl440JJvm09WRdNxQ,29329
34
34
  arthur_common/models/response_schemas.py,sha256=eZCgxnfOht8isUunAA4rosLFA-tgXRZIcj2CYa5XqOE,24362
@@ -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=9teI67umlGn0izp6pZ5UBuWxJthaWEmw3wRj2KPIbf4,5207
46
46
  arthur_common/tools/time_utils.py,sha256=4gfiu9NXfvPZltiVNLSIQGylX6h2W0viNi9Kv4bKyfw,1410
47
- arthur_common-2.3.0.dist-info/METADATA,sha256=AfXaXNFya5qwUZcaI_QBG7b1gTLCgLSoza5kzgyGb0E,2146
48
- arthur_common-2.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
- arthur_common-2.3.0.dist-info/RECORD,,
47
+ arthur_common-2.4.0.dist-info/METADATA,sha256=p9N6lvjusbOqVo367KxQgD3g0mJgPMVLoxwJOAbCVRw,2146
48
+ arthur_common-2.4.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
49
+ arthur_common-2.4.0.dist-info/RECORD,,