fasteval-langfuse 2.1.2__tar.gz → 2.1.4__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.
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fasteval-langfuse
3
- Version: 2.1.2
3
+ Version: 2.1.4
4
4
  Summary: Langfuse integration for fasteval - evaluate production traces with fasteval metrics
5
5
  Author: Intuit
6
6
  License: Apache-2.0
7
- Requires-Dist: fasteval-core>=1.0.3
7
+ Requires-Dist: fasteval-core>=1.2.0
8
8
  Requires-Dist: langfuse>=2.0.0
9
9
  Requires-Dist: pydantic>=2.0.0
10
10
  Requires-Python: >=3.10, <4.0
@@ -57,7 +57,7 @@ def parse_time_range(time_range: str) -> tuple[Optional[str], Optional[str]]:
57
57
  Returns:
58
58
  Tuple of (from_timestamp, to_timestamp) in ISO 8601 format
59
59
  """
60
- from datetime import datetime, timedelta
60
+ from datetime import datetime, timedelta, timezone
61
61
 
62
62
  if not time_range:
63
63
  return None, None
@@ -78,8 +78,10 @@ def parse_time_range(time_range: str) -> tuple[Optional[str], Optional[str]]:
78
78
  else:
79
79
  raise ValueError(f"Invalid time range format: {time_range}")
80
80
 
81
- to_timestamp = datetime.utcnow().isoformat() + "Z"
82
- from_timestamp = (datetime.utcnow() - delta).isoformat() + "Z"
81
+ to_timestamp = datetime.now(timezone.utc).isoformat().replace("+00:00", "Z")
82
+ from_timestamp = (
83
+ (datetime.now(timezone.utc) - delta).isoformat().replace("+00:00", "Z")
84
+ )
83
85
  return from_timestamp, to_timestamp
84
86
 
85
87
  # Handle "YYYY-MM-DD to YYYY-MM-DD" format
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fasteval-langfuse"
3
- version = "2.1.2"
3
+ version = "2.1.4"
4
4
  description = "Langfuse integration for fasteval - evaluate production traces with fasteval metrics"
5
5
  authors = [{name = "Intuit"}]
6
6
  license = {text = "Apache-2.0"}
@@ -8,7 +8,7 @@ readme = "README.md"
8
8
  requires-python = ">=3.10,<4.0"
9
9
 
10
10
  dependencies = [
11
- "fasteval-core>=1.0.3",
11
+ "fasteval-core>=1.2.0",
12
12
  "langfuse>=2.0.0",
13
13
  "pydantic>=2.0.0",
14
14
  ]