netra-sdk 0.1.25__py3-none-any.whl → 0.1.26__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 netra-sdk might be problematic. Click here for more details.
- netra/__init__.py +6 -0
- netra/version.py +1 -1
- {netra_sdk-0.1.25.dist-info → netra_sdk-0.1.26.dist-info}/METADATA +1 -2
- {netra_sdk-0.1.25.dist-info → netra_sdk-0.1.26.dist-info}/RECORD +6 -6
- {netra_sdk-0.1.25.dist-info → netra_sdk-0.1.26.dist-info}/LICENCE +0 -0
- {netra_sdk-0.1.25.dist-info → netra_sdk-0.1.26.dist-info}/WHEEL +0 -0
netra/__init__.py
CHANGED
|
@@ -89,6 +89,8 @@ class Netra:
|
|
|
89
89
|
Args:
|
|
90
90
|
session_id: Session identifier
|
|
91
91
|
"""
|
|
92
|
+
if not isinstance(session_id, str):
|
|
93
|
+
raise TypeError(f"session_id must be a string, got {type(session_id)}")
|
|
92
94
|
if session_id:
|
|
93
95
|
SessionManager.set_session_context("session_id", session_id)
|
|
94
96
|
else:
|
|
@@ -102,6 +104,8 @@ class Netra:
|
|
|
102
104
|
Args:
|
|
103
105
|
user_id: User identifier
|
|
104
106
|
"""
|
|
107
|
+
if not isinstance(user_id, str):
|
|
108
|
+
raise TypeError(f"user_id must be a string, got {type(user_id)}")
|
|
105
109
|
if user_id:
|
|
106
110
|
SessionManager.set_session_context("user_id", user_id)
|
|
107
111
|
else:
|
|
@@ -115,6 +119,8 @@ class Netra:
|
|
|
115
119
|
Args:
|
|
116
120
|
user_account_id: User account identifier
|
|
117
121
|
"""
|
|
122
|
+
if not isinstance(tenant_id, str):
|
|
123
|
+
raise TypeError(f"tenant_id must be a string, got {type(tenant_id)}")
|
|
118
124
|
if tenant_id:
|
|
119
125
|
SessionManager.set_session_context("tenant_id", tenant_id)
|
|
120
126
|
else:
|
netra/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.1.
|
|
1
|
+
__version__ = "0.1.26"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: netra-sdk
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.26
|
|
4
4
|
Summary: A Python SDK for AI application observability that provides OpenTelemetry-based monitoring, tracing, and PII protection for LLM and vector database applications. Enables easy instrumentation, session tracking, and privacy-focused data collection for AI systems in production environments.
|
|
5
5
|
License: Apache-2.0
|
|
6
6
|
Keywords: netra,tracing,observability,sdk,ai,llm,vector,database
|
|
@@ -72,7 +72,6 @@ Requires-Dist: presidio-anonymizer (==2.2.358) ; extra == "presidio"
|
|
|
72
72
|
Requires-Dist: stanza (>=1.10.1,<2.0.0) ; extra == "presidio"
|
|
73
73
|
Requires-Dist: traceloop-sdk (>=0.40.7,<0.43.0)
|
|
74
74
|
Requires-Dist: transformers (==4.51.3) ; extra == "presidio"
|
|
75
|
-
Requires-Dist: twine (>=6.1.0,<7.0.0)
|
|
76
75
|
Project-URL: Bug Tracker, https://github.com/KeyValueSoftwareSystems/netra-sdk-py/issues
|
|
77
76
|
Project-URL: Documentation, https://github.com/KeyValueSoftwareSystems/netra-sdk-py/blob/main/README.md
|
|
78
77
|
Project-URL: Homepage, https://github.com/KeyValueSoftwareSystems/netra-sdk-py
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
netra/__init__.py,sha256=
|
|
1
|
+
netra/__init__.py,sha256=kKhZn-h8cMAmTzLFIwvtlWBZ_t0CxnTe_XRunQYA9Xk,5764
|
|
2
2
|
netra/anonymizer/__init__.py,sha256=KeGPPZqKVZbtkbirEKYTYhj6aZHlakjdQhD7QHqBRio,133
|
|
3
3
|
netra/anonymizer/anonymizer.py,sha256=IcrYkdwWrFauGWUeAW-0RwrSUM8VSZCFNtoywZhvIqU,3778
|
|
4
4
|
netra/anonymizer/base.py,sha256=ytPxHCUD2OXlEY6fNTuMmwImNdIjgj294I41FIgoXpU,5946
|
|
@@ -43,8 +43,8 @@ netra/scanner.py,sha256=kyDpeZiscCPb6pjuhS-sfsVj-dviBFRepdUWh0sLoEY,11554
|
|
|
43
43
|
netra/session_manager.py,sha256=EVcnWcSj4NdkH--HmqHx0mmzivQiM4GCyFLu6lwi33M,6252
|
|
44
44
|
netra/span_wrapper.py,sha256=ec2WLYTRLZ02WSSCYEsMn1PgUGVji9rFyq_CRCV9rog,7388
|
|
45
45
|
netra/tracer.py,sha256=In5QPVLz_6BxrolWpav9EuR9_hirD2UUIlyY75QUaKk,3450
|
|
46
|
-
netra/version.py,sha256=
|
|
47
|
-
netra_sdk-0.1.
|
|
48
|
-
netra_sdk-0.1.
|
|
49
|
-
netra_sdk-0.1.
|
|
50
|
-
netra_sdk-0.1.
|
|
46
|
+
netra/version.py,sha256=3_QdGLpuk_SDY7k9PpNcHpSTjlPdhadPiEgF82wzkqk,23
|
|
47
|
+
netra_sdk-0.1.26.dist-info/LICENCE,sha256=8B_UoZ-BAl0AqiHAHUETCgd3I2B9yYJ1WEQtVb_qFMA,11359
|
|
48
|
+
netra_sdk-0.1.26.dist-info/METADATA,sha256=nEwz2GIkEzknb3eHQ16FePJnBQTErj3W8U6kpO4GxdY,27817
|
|
49
|
+
netra_sdk-0.1.26.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
50
|
+
netra_sdk-0.1.26.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|