llumo 0.2.4__py3-none-any.whl → 0.2.6__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.
llumo/client.py CHANGED
@@ -1,16 +1,18 @@
1
1
  import requests
2
2
 
3
- from .exceptions import LlumoAIError
3
+
4
4
  import time
5
5
  import re
6
6
  import json
7
7
  import uuid
8
+
8
9
  import os
9
10
  import itertools
10
11
  import pandas as pd
11
12
  from typing import List, Dict
12
13
  from .models import AVAILABLEMODELS, getProviderFromModel
13
14
  from .execution import ModelExecutor
15
+ from .exceptions import LlumoAIError
14
16
  from .helpingFuntions import *
15
17
  from .sockets import LlumoSocketClient
16
18
  from .functionCalling import LlumoAgentExecutor
llumo/helpingFuntions.py CHANGED
@@ -106,23 +106,28 @@ def checkUserHits(
106
106
  if subscriptionEndDate and current_date > subscriptionEndDate:
107
107
  return {"success": False, "message": "Subscription expired. Access denied."}
108
108
 
109
- if remainingHits <= 0 or remainingHits < datasetLength:
110
- headers = {
111
- "Authorization": f"Bearer {base64.b64encode(workspaceID.encode()).decode()}",
112
- "Content-Type": "application/json",
113
- }
114
- reqBody = {"unitsToSet": 1}
115
- responseBody = requests.post(
116
- url=subscriptionUrl, json=reqBody, headers=headers
117
- )
118
- response = json.loads(responseBody.text)
119
-
120
- proceed = response.get("execution", "")
121
- print(proceed)
122
-
123
- if proceed:
124
- return {"success": True, "message": "Hits added and access granted."}
125
109
 
110
+
111
+ if remainingHits <= 0 or remainingHits < datasetLength:
112
+ if workspaceID:
113
+ workspaceID=str(workspaceID)
114
+ headers = {
115
+ "Authorization": f"Bearer {base64.b64encode(workspaceID.encode()).decode()}",
116
+ "Content-Type": "application/json",
117
+ }
118
+ reqBody = {"unitsToSet": 1}
119
+ responseBody = requests.post(
120
+ url=subscriptionUrl, json=reqBody, headers=headers
121
+ )
122
+ response = json.loads(responseBody.text)
123
+
124
+ proceed = response.get("execution", "")
125
+ print(proceed)
126
+
127
+ if proceed:
128
+ return {"success": True, "message": "Hits added and access granted."}
129
+ else:
130
+ return {"success": False, "message": "Workspace ID is required for subscription."}
126
131
  return {"success": True, "message": "Access granted."}
127
132
 
128
133
 
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: llumo
3
+ Version: 0.2.6
4
+ Summary: Python SDK for interacting with the Llumo ai API.
5
+ Home-page: https://www.llumo.ai/
6
+ Author: Llumo
7
+ Author-email: product@llumo.ai
8
+ Classifier: Development Status :: 3 - Alpha
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.7
13
+ Classifier: Programming Language :: Python :: 3.8
14
+ Classifier: Programming Language :: Python :: 3.9
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Requires-Python: >=3.7
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: requests>=2.0.0
21
+ Requires-Dist: python-socketio
22
+ Requires-Dist: python-dotenv
23
+ Requires-Dist: openai==1.75.0
24
+ Requires-Dist: google-generativeai==0.8.5
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: home-page
31
+ Dynamic: license-file
32
+ Dynamic: requires-dist
33
+ Dynamic: requires-python
34
+ Dynamic: summary
35
+
36
+ # LLUMO SDK
37
+
38
+ A lightweight Python SDK to interact with the LLUMO API for evaluating LLM responses using analytics like Confidence, Clarity, Context, etc.
39
+
40
+ ## 🔧 Features
41
+
42
+ - API wrapper for LLUMO's analytics endpoints
43
+ - Supports multiple analytics types
44
+
45
+ ## 📦 Installation
46
+
47
+ Clone and install locally:
48
+
49
+ ```bash
50
+ git clone https://github.com/yourusername/llumo-sdk.git
51
+ cd llumo-sdk
52
+ pip install .
@@ -1,13 +1,13 @@
1
1
  llumo/__init__.py,sha256=O04b4yW1BnOvcHzxWFddAKhtdBEhBNhLdb6xgnpHH_Q,205
2
- llumo/client.py,sha256=aCYeUrmEssSqydA_p3nokJ9MkspgitJ0HTmzL7SpkQw,35540
2
+ llumo/client.py,sha256=-WbLKXrKkw2iMiH8Cv5CUSFYqpJG5EJKQUwnaVrdzXA,35542
3
3
  llumo/exceptions.py,sha256=iCj7HhtO_ckC2EaVBdXbAudNpuMDsYmmMEV5lwynZ-E,1854
4
4
  llumo/execution.py,sha256=x88wQV8eL99wNN5YtjFaAMCIfN1PdfQVlAZQb4vzgQ0,1413
5
5
  llumo/functionCalling.py,sha256=D5jYapu1rIvdIJNUYPYMTyhQ1H-6nkwoOLMi6eekfUE,7241
6
- llumo/helpingFuntions.py,sha256=G_pqLhYNH3bZ47gA--w6YFNvB443xkrbh8CeQfYxazk,8839
6
+ llumo/helpingFuntions.py,sha256=lG_d3lQgJj6pI7v1YdLqdPojrLCNwybKz29zXrGaL5k,9090
7
7
  llumo/models.py,sha256=YH-qAMnShmUpmKE2LQAzQdpRsaXkFSlOqMxHwU4zBUI,1560
8
8
  llumo/sockets.py,sha256=Qxxqtx3Hg07HLhA4QfcipK1ChiOYhHZBu02iA6MfYlQ,5579
9
- llumo-0.2.4.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
10
- llumo-0.2.4.dist-info/METADATA,sha256=fccBu5Rs8SdsH-PstSiI_jeAW7Be1LR5DnG6quUdclc,426
11
- llumo-0.2.4.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
12
- llumo-0.2.4.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
13
- llumo-0.2.4.dist-info/RECORD,,
9
+ llumo-0.2.6.dist-info/licenses/LICENSE,sha256=tF9yAcfPV9xGT3ViWmC8hPvOo8BEk4ZICbUfcEo8Dlk,182
10
+ llumo-0.2.6.dist-info/METADATA,sha256=_t9aMWdGralRPEqkE4JUtYOfk6HaOoHZDjwE-Na7aa0,1490
11
+ llumo-0.2.6.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
12
+ llumo-0.2.6.dist-info/top_level.txt,sha256=d5zUTMI99llPtLRB8rtSrqELm_bOqX-bNC5IcwlDk88,6
13
+ llumo-0.2.6.dist-info/RECORD,,
@@ -1,17 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: llumo
3
- Version: 0.2.4
4
- Summary: Python SDK for interacting with the Llumo ai API.
5
- Home-page: https://www.llumo.ai/
6
- Author: Llumo
7
- Author-email: product@llumo.ai
8
- Requires-Python: >=3.7
9
- Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Dynamic: author
12
- Dynamic: author-email
13
- Dynamic: description-content-type
14
- Dynamic: home-page
15
- Dynamic: license-file
16
- Dynamic: requires-python
17
- Dynamic: summary
File without changes