langtrace-python-sdk 2.1.19__py3-none-any.whl → 2.1.20__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.
@@ -27,6 +27,8 @@ class OpenMode(str):
27
27
 
28
28
 
29
29
  class LangTraceFile(io.BytesIO):
30
+ _host: str = os.environ.get("LANGTRACE_API_HOST", None) or LANGTRACE_REMOTE_URL
31
+
30
32
  def __init__(self, fs: "LangTraceFileSystem", path: str, mode: OpenMode):
31
33
  super().__init__()
32
34
  self.fs = fs
@@ -65,7 +67,7 @@ class LangTraceFile(io.BytesIO):
65
67
  else:
66
68
  print(Fore.GREEN + "Sending results to Langtrace" + Fore.RESET)
67
69
  response = requests.post(
68
- url=f"{LANGTRACE_REMOTE_URL}/api/run",
70
+ url=f"{self._host}/api/run",
69
71
  data=json.dumps(data),
70
72
  headers={
71
73
  "Content-Type": "application/json",
@@ -80,6 +82,7 @@ class LangTraceFile(io.BytesIO):
80
82
 
81
83
 
82
84
  class LangTraceFileSystem(AbstractFileSystem):
85
+ _host: str = os.environ.get("LANGTRACE_API_HOST", None) or LANGTRACE_REMOTE_URL
83
86
  protocol = "langtracefs"
84
87
  sep = "/"
85
88
 
@@ -112,7 +115,7 @@ class LangTraceFileSystem(AbstractFileSystem):
112
115
  + Fore.RESET
113
116
  )
114
117
  response = requests.get(
115
- url=f"{LANGTRACE_REMOTE_URL}/api/dataset/download?id={dataset_id}",
118
+ url=f"{self._host}/api/dataset/download?id={dataset_id}",
116
119
  headers={
117
120
  "Content-Type": "application/json",
118
121
  "x-api-key": os.environ.get("LANGTRACE_API_KEY"),
@@ -1 +1 @@
1
- __version__ = "2.1.19"
1
+ __version__ = "2.1.20"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: langtrace-python-sdk
3
- Version: 2.1.19
3
+ Version: 2.1.20
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -46,7 +46,7 @@ examples/weaviate_example/__init__.py,sha256=8JMDBsRSEV10HfTd-YC7xb4txBjD3la56sn
46
46
  examples/weaviate_example/query_text.py,sha256=qz9o-fTDzX5AW5m8BJF-TfmBdokxh492NfnmnPUMU3s,64814
47
47
  langtrace_python_sdk/__init__.py,sha256=VZM6i71NR7pBQK6XvJWRelknuTYUhqwqE7PlicKa5Wg,1166
48
48
  langtrace_python_sdk/langtrace.py,sha256=WRgbBS7T1q3ZELvVZLVCKdqa00m64lozgeiCp6MOQn8,7352
49
- langtrace_python_sdk/version.py,sha256=ORNtksaL65IiKUhkJEaS3s0gzZq5HMSHSwIKtUEfCBA,23
49
+ langtrace_python_sdk/version.py,sha256=1o03qONF3c4_EpFCJ6aUvh-e6t48L0nm4t4sDu21mEA,23
50
50
  langtrace_python_sdk/constants/__init__.py,sha256=P8QvYwt5czUNDZsKS64vxm9Dc41ptGbuF1TFtAF6nv4,44
51
51
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=5MNjnAOg-4am78J3gVMH6FSwq5N8TOj72ugkhsw4vi0,46
52
52
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -62,7 +62,7 @@ langtrace_python_sdk/constants/instrumentation/qdrant.py,sha256=yL7BopNQTXW7L7Z-
62
62
  langtrace_python_sdk/constants/instrumentation/weaviate.py,sha256=Iytf2OpB_irZYEmvOQ7Pf483EdG5Bh59GxaBlXck0yY,1501
63
63
  langtrace_python_sdk/extensions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
64
  langtrace_python_sdk/extensions/langtrace_exporter.py,sha256=gWVRU2DlB4xjZ4ww7M63DaLiAN5zQ2k1HPrythmjEdo,4202
65
- langtrace_python_sdk/extensions/langtrace_filesystem.py,sha256=lQlFgKM5sRrNHvaKMioxEdIvoY6V-cG2tnEyddT3lPM,6776
65
+ langtrace_python_sdk/extensions/langtrace_filesystem.py,sha256=qpnkpkuTZ2yhGgpBK64QJLt0T1iL-1zpEMPz4quJ_ng,6925
66
66
  langtrace_python_sdk/instrumentation/__init__.py,sha256=18E7qZOIKmSm59ij7n-ytCv3qenjkDlNz9xPjapOLtY,1107
67
67
  langtrace_python_sdk/instrumentation/anthropic/__init__.py,sha256=donrurJAGYlxrSRA3BIf76jGeUcAx9Tq8CVpah68S0Y,101
68
68
  langtrace_python_sdk/instrumentation/anthropic/instrumentation.py,sha256=-srgE8qumAn0ulQYZxMa8ch-9IBH0XgBW_rfEnGk6LI,1684
@@ -152,8 +152,8 @@ tests/pinecone/cassettes/test_query.yaml,sha256=b5v9G3ssUy00oG63PlFUR3JErF2Js-5A
152
152
  tests/pinecone/cassettes/test_upsert.yaml,sha256=neWmQ1v3d03V8WoLl8FoFeeCYImb8pxlJBWnFd_lITU,38607
153
153
  tests/qdrant/conftest.py,sha256=9n0uHxxIjWk9fbYc4bx-uP8lSAgLBVx-cV9UjnsyCHM,381
154
154
  tests/qdrant/test_qdrant.py,sha256=pzjAjVY2kmsmGfrI2Gs2xrolfuaNHz7l1fqGQCjp5_o,3353
155
- langtrace_python_sdk-2.1.19.dist-info/METADATA,sha256=Ll01P8FwZ7OwKOnM2UajEWZsLj7EXGTKhcZvWKLS2Dk,13161
156
- langtrace_python_sdk-2.1.19.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
157
- langtrace_python_sdk-2.1.19.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
158
- langtrace_python_sdk-2.1.19.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
159
- langtrace_python_sdk-2.1.19.dist-info/RECORD,,
155
+ langtrace_python_sdk-2.1.20.dist-info/METADATA,sha256=0cem4DCsGpcKB8mDxKYrizbmBXNfjyD8tB6ZL3xg2Sk,13161
156
+ langtrace_python_sdk-2.1.20.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
157
+ langtrace_python_sdk-2.1.20.dist-info/entry_points.txt,sha256=1_b9-qvf2fE7uQNZcbUei9vLpFZBbbh9LrtGw95ssAo,70
158
+ langtrace_python_sdk-2.1.20.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
159
+ langtrace_python_sdk-2.1.20.dist-info/RECORD,,