rakam-eval-sdk 0.2.4rc2__py3-none-any.whl → 0.2.4rc4__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.
rakam_eval_sdk/cli.py CHANGED
@@ -6,7 +6,7 @@ import uuid
6
6
  from datetime import datetime
7
7
  from pathlib import Path
8
8
  from pprint import pprint
9
- from typing import Any, Dict, List, Optional, Tuple, Union
9
+ from typing import Any, Dict, List, Optional, Tuple, Union,Set
10
10
 
11
11
  import typer
12
12
  from dotenv import load_dotenv
@@ -37,14 +37,14 @@ metrics_app = typer.Typer(help="Metrics utilities")
37
37
  app.add_typer(metrics_app, name="metrics")
38
38
 
39
39
 
40
- def extract_metric_names(config: Any) -> list[tuple[str, Optional[str]]]:
40
+ def extract_metric_names(config: Any) -> List[Tuple[str, Optional[str]]]:
41
41
  """
42
42
  Returns [(type, name)] from EvalConfig / SchemaEvalConfig
43
43
  """
44
44
  if not hasattr(config, "metrics"):
45
45
  return []
46
46
 
47
- results: list[tuple[str, Optional[str]]] = []
47
+ results: List[Tuple[str, Optional[str]]] = []
48
48
 
49
49
  for metric in config.metrics or []:
50
50
  metric_type = getattr(metric, "type", None)
@@ -77,7 +77,7 @@ def metrics(
77
77
  files = directory.rglob("*.py") if recursive else directory.glob("*.py")
78
78
  TARGET_DECORATOR = eval_run.__name__
79
79
 
80
- all_metrics: set[tuple[str, Optional[str]]] = set()
80
+ all_metrics: Set[Tuple[str, Optional[str]]] = set()
81
81
  found_any = False
82
82
 
83
83
  for file in sorted(files):
@@ -1,10 +1,16 @@
1
1
  import functools
2
2
  import os
3
+ import sys
3
4
  import time
4
- from typing import Callable, Dict, Optional, ParamSpec, TypeVar, Union, overload
5
+ from typing import Callable, Dict, Optional, TypeVar, Union, overload
5
6
 
6
7
  import psutil
7
8
 
9
+ if sys.version_info < (3, 9):
10
+ from typing_extensions import ParamSpec
11
+
12
+ else:
13
+ from typing import ParamSpec
8
14
  P = ParamSpec("P")
9
15
  R = TypeVar("R")
10
16
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: rakam-eval-sdk
3
- Version: 0.2.4rc2
3
+ Version: 0.2.4rc4
4
4
  Summary: Evaluation Framework SDK
5
5
  Author: Mohamed Bachar Touil
6
6
  License: MIT
@@ -0,0 +1,10 @@
1
+ rakam_eval_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ rakam_eval_sdk/cli.py,sha256=0KKHW6lDjJWtbL-eaYvNeaVfTLzCwipwFmk9x584jqo,21935
3
+ rakam_eval_sdk/client.py,sha256=8KwpNt7WHgMfcXAQtrAlnUihai9TiADRieiuWeIxg6E,15575
4
+ rakam_eval_sdk/decorators.py,sha256=GoaAqnKg-VeYf5eBI-mEgJj6Asqmdqw4QG_qqHu5x2s,1908
5
+ rakam_eval_sdk/schema.py,sha256=S16lSC1p4KuYd9qWZ5aquK6S8AzUEDCZYc4VfI58r9k,3969
6
+ rakam_eval_sdk/utils/decorator_utils.py,sha256=g0TjXtG9o4hwhUAFP8GJsXAkjhZhzeseTAg-YBFjj2g,1763
7
+ rakam_eval_sdk-0.2.4rc4.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
8
+ rakam_eval_sdk-0.2.4rc4.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
9
+ rakam_eval_sdk-0.2.4rc4.dist-info/METADATA,sha256=LPz6o8z1S86_NY0P3JZS-W-SqqaaKNMQ9Lx_GPufYuk,6022
10
+ rakam_eval_sdk-0.2.4rc4.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- rakam_eval_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- rakam_eval_sdk/cli.py,sha256=yhs-TSWrq-tCe5FtO50cqbqd66tBsAa2Tlav4ubMkrw,21931
3
- rakam_eval_sdk/client.py,sha256=8KwpNt7WHgMfcXAQtrAlnUihai9TiADRieiuWeIxg6E,15575
4
- rakam_eval_sdk/decorators.py,sha256=_9VFQmoYWd6cqnNryZJWEwYHQRxY7vIOam4z45zBk3c,1794
5
- rakam_eval_sdk/schema.py,sha256=S16lSC1p4KuYd9qWZ5aquK6S8AzUEDCZYc4VfI58r9k,3969
6
- rakam_eval_sdk/utils/decorator_utils.py,sha256=g0TjXtG9o4hwhUAFP8GJsXAkjhZhzeseTAg-YBFjj2g,1763
7
- rakam_eval_sdk-0.2.4rc2.dist-info/WHEEL,sha256=eh7sammvW2TypMMMGKgsM83HyA_3qQ5Lgg3ynoecH3M,79
8
- rakam_eval_sdk-0.2.4rc2.dist-info/entry_points.txt,sha256=tNhwmM_UGELb3h0zOfgCrtTheUkP-k8jGv0rTOfRSps,56
9
- rakam_eval_sdk-0.2.4rc2.dist-info/METADATA,sha256=9uLO_02mm3GT0alrkDCMkS_HsozGc__gde5VOQObUsY,6022
10
- rakam_eval_sdk-0.2.4rc2.dist-info/RECORD,,