arthur-common 2.1.59__tar.gz → 2.1.60__tar.gz

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.

Files changed (44) hide show
  1. {arthur_common-2.1.59 → arthur_common-2.1.60}/PKG-INFO +3 -3
  2. {arthur_common-2.1.59 → arthur_common-2.1.60}/README.md +2 -2
  3. {arthur_common-2.1.59 → arthur_common-2.1.60}/pyproject.toml +1 -1
  4. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/aggregator.py +3 -1
  5. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/duckdb_data_loader.py +4 -2
  6. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/__init__.py +0 -0
  7. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/__init__.py +0 -0
  8. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/README.md +0 -0
  9. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/__init__.py +0 -0
  10. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/agentic_aggregations.py +0 -0
  11. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/categorical_count.py +0 -0
  12. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/confusion_matrix.py +0 -0
  13. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/inference_count.py +0 -0
  14. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/inference_count_by_class.py +0 -0
  15. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/inference_null_count.py +0 -0
  16. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/mean_absolute_error.py +0 -0
  17. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/mean_squared_error.py +0 -0
  18. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/multiclass_confusion_matrix.py +0 -0
  19. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/multiclass_inference_count_by_class.py +0 -0
  20. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/numeric_stats.py +0 -0
  21. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/numeric_sum.py +0 -0
  22. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/py.typed +0 -0
  23. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/functions/shield_aggregations.py +0 -0
  24. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/aggregations/py.typed +0 -0
  25. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/config/__init__.py +0 -0
  26. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/config/config.py +0 -0
  27. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/config/settings.yaml +0 -0
  28. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/__init__.py +0 -0
  29. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/connectors.py +0 -0
  30. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/datasets.py +0 -0
  31. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/metrics.py +0 -0
  32. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/py.typed +0 -0
  33. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/schema_definitions.py +0 -0
  34. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/shield.py +0 -0
  35. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/models/task_job_specs.py +0 -0
  36. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/py.typed +0 -0
  37. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/__init__.py +0 -0
  38. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/aggregation_analyzer.py +0 -0
  39. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/aggregation_loader.py +0 -0
  40. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/duckdb_utils.py +0 -0
  41. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/functions.py +0 -0
  42. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/py.typed +0 -0
  43. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/schema_inferer.py +0 -0
  44. {arthur_common-2.1.59 → arthur_common-2.1.60}/src/arthur_common/tools/time_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arthur-common
3
- Version: 2.1.59
3
+ Version: 2.1.60
4
4
  Summary: Utility code common to Arthur platform components.
5
5
  License: MIT
6
6
  Author: Arthur
@@ -43,14 +43,14 @@ pip install arthur-common
43
43
 
44
44
  ## Requirements
45
45
 
46
- - Python 3.12
46
+ - Python 3.13
47
47
 
48
48
  ## Development
49
49
 
50
50
  To set up the development environment, ensure you have [Poetry](https://python-poetry.org/) installed, then run:
51
51
 
52
52
  ```bash
53
- poetry env use 3.12
53
+ poetry env use 3.13
54
54
  poetry install
55
55
  ```
56
56
 
@@ -18,14 +18,14 @@ pip install arthur-common
18
18
 
19
19
  ## Requirements
20
20
 
21
- - Python 3.12
21
+ - Python 3.13
22
22
 
23
23
  ## Development
24
24
 
25
25
  To set up the development environment, ensure you have [Poetry](https://python-poetry.org/) installed, then run:
26
26
 
27
27
  ```bash
28
- poetry env use 3.12
28
+ poetry env use 3.13
29
29
  poetry install
30
30
  ```
31
31
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "arthur-common"
3
- version = "2.1.59"
3
+ version = "2.1.60"
4
4
  description = "Utility code common to Arthur platform components."
5
5
  authors = ["Arthur <engineering@arthur.ai>"]
6
6
  license = "MIT"
@@ -172,7 +172,9 @@ class SketchAggregationFunction(AggregationFunction, ABC):
172
172
  groups = data.groupby(dim_columns, dropna=False)
173
173
  for _, group in groups:
174
174
  calculated_metrics.append(
175
- SketchAggregationFunction._group_to_series(group, timestamp_col, dim_columns, value_col),
175
+ SketchAggregationFunction._group_to_series(
176
+ group, timestamp_col, dim_columns, value_col
177
+ ),
176
178
  )
177
179
 
178
180
  return calculated_metrics
@@ -16,6 +16,8 @@ from arthur_common.models.schema_definitions import (
16
16
  DType,
17
17
  )
18
18
 
19
+ MAX_JSON_OBJECT_SIZE = 1024 * 1024 * 1024 # 1GB
20
+
19
21
 
20
22
  class ColumnFormat(BaseModel):
21
23
  source_name: str
@@ -104,9 +106,9 @@ class DuckDBOperator:
104
106
  stringified_schema = ", ".join([f"{kv}" for kv in key_value_pairs])
105
107
  stringified_schema = f"{{ {stringified_schema} }}"
106
108
 
107
- read_stmt = f"read_json('memory://inferences.json', format='array', columns={stringified_schema})"
109
+ read_stmt = f"read_json('memory://inferences.json', format='array', columns={stringified_schema}, maximum_object_size={MAX_JSON_OBJECT_SIZE})"
108
110
  else:
109
- read_stmt = "read_json_auto('memory://inferences.json')"
111
+ read_stmt = f"read_json_auto('memory://inferences.json', maximum_object_size={MAX_JSON_OBJECT_SIZE})"
110
112
 
111
113
  conn.sql(
112
114
  f"CREATE OR REPLACE TEMP TABLE {table_name} AS SELECT * FROM {read_stmt}",