sentor-ml 1.0.2__tar.gz → 1.1.0__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentor-ml
3
- Version: 1.0.2
3
+ Version: 1.1.0
4
4
  Summary: A Python SDK for interacting with the Sentor ML API for sentiment analysis
5
5
  Home-page: https://github.com/NIKX-Tech/sentor-ml-python-sdk
6
6
  Author: NIKX Technologies
@@ -47,21 +47,9 @@ A Python SDK for interacting with the Sentor ML API for sentiment analysis. This
47
47
  pip install sentor-ml
48
48
  ```
49
49
 
50
- ## Get API key
51
-
52
- ### Try with guest API key
53
- Get a guest API key to try the API.
54
-
55
- ```bash
56
- curl -X 'POST' \
57
- 'https://ml.sentor.app/api/auth/guest-access' \
58
- -H 'accept: application/json' \
59
- -d ''
60
- ```
61
-
62
50
  ### Work like a PRO
63
51
 
64
- 1. Go to [Sentor ML API](https://ml.sentor.app)
52
+ 1. Go to [Sentor ML API](https://sentor.app/api)
65
53
  2. Subscribe to the Starter plan
66
54
  3. Get your API key
67
55
 
@@ -209,8 +197,8 @@ print(result)
209
197
 
210
198
  ## API Reference
211
199
 
212
- Please refer to the [Sentor ML API Documentation](https://ml.sentor.app/docs/guide/) for more details.
213
- You can also try the API in the [Sentor ML API Swagger Playground](https://ml.sentor.app/docs).
200
+ Please refer to the [Sentor ML API Documentation](https://sentor.app/docs) for more details.
201
+ You can also try the API in the [Sentor ML API Swagger Playground](https://sentor.app/docs).
214
202
 
215
203
  ## Contributing
216
204
 
@@ -17,21 +17,9 @@ A Python SDK for interacting with the Sentor ML API for sentiment analysis. This
17
17
  pip install sentor-ml
18
18
  ```
19
19
 
20
- ## Get API key
21
-
22
- ### Try with guest API key
23
- Get a guest API key to try the API.
24
-
25
- ```bash
26
- curl -X 'POST' \
27
- 'https://ml.sentor.app/api/auth/guest-access' \
28
- -H 'accept: application/json' \
29
- -d ''
30
- ```
31
-
32
20
  ### Work like a PRO
33
21
 
34
- 1. Go to [Sentor ML API](https://ml.sentor.app)
22
+ 1. Go to [Sentor ML API](https://sentor.app/api)
35
23
  2. Subscribe to the Starter plan
36
24
  3. Get your API key
37
25
 
@@ -179,8 +167,8 @@ print(result)
179
167
 
180
168
  ## API Reference
181
169
 
182
- Please refer to the [Sentor ML API Documentation](https://ml.sentor.app/docs/guide/) for more details.
183
- You can also try the API in the [Sentor ML API Swagger Playground](https://ml.sentor.app/docs).
170
+ Please refer to the [Sentor ML API Documentation](https://sentor.app/docs) for more details.
171
+ You can also try the API in the [Sentor ML API Swagger Playground](https://sentor.app/docs).
184
172
 
185
173
  ## Contributing
186
174
 
@@ -17,7 +17,7 @@ class SentorClient:
17
17
  def __init__(
18
18
  self,
19
19
  api_key: str,
20
- base_url: str = "https://ml.sentor.app/api",
20
+ base_url: str = "https://sentor.app/api",
21
21
  timeout: int = 30,
22
22
  ):
23
23
  """
@@ -49,7 +49,7 @@ class SentorClient:
49
49
  if not documents:
50
50
  raise ValueError("Input is required")
51
51
 
52
- url = f"{self.base_url}/ml/predict"
52
+ url = f"{self.base_url}/predicts"
53
53
  payload = {"docs": documents}
54
54
  response = requests.post(
55
55
  url, json=payload, headers=self.headers, timeout=self.timeout
@@ -73,7 +73,7 @@ class SentorClient:
73
73
  Raises:
74
74
  SentorAPIError: If health check fails
75
75
  """
76
- url = f"{self.base_url}/health"
76
+ url = f"{self.base_url}/predicts/health"
77
77
  response = requests.get(
78
78
  url,
79
79
  headers=self.headers,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sentor-ml
3
- Version: 1.0.2
3
+ Version: 1.1.0
4
4
  Summary: A Python SDK for interacting with the Sentor ML API for sentiment analysis
5
5
  Home-page: https://github.com/NIKX-Tech/sentor-ml-python-sdk
6
6
  Author: NIKX Technologies
@@ -47,21 +47,9 @@ A Python SDK for interacting with the Sentor ML API for sentiment analysis. This
47
47
  pip install sentor-ml
48
48
  ```
49
49
 
50
- ## Get API key
51
-
52
- ### Try with guest API key
53
- Get a guest API key to try the API.
54
-
55
- ```bash
56
- curl -X 'POST' \
57
- 'https://ml.sentor.app/api/auth/guest-access' \
58
- -H 'accept: application/json' \
59
- -d ''
60
- ```
61
-
62
50
  ### Work like a PRO
63
51
 
64
- 1. Go to [Sentor ML API](https://ml.sentor.app)
52
+ 1. Go to [Sentor ML API](https://sentor.app/api)
65
53
  2. Subscribe to the Starter plan
66
54
  3. Get your API key
67
55
 
@@ -209,8 +197,8 @@ print(result)
209
197
 
210
198
  ## API Reference
211
199
 
212
- Please refer to the [Sentor ML API Documentation](https://ml.sentor.app/docs/guide/) for more details.
213
- You can also try the API in the [Sentor ML API Swagger Playground](https://ml.sentor.app/docs).
200
+ Please refer to the [Sentor ML API Documentation](https://sentor.app/docs) for more details.
201
+ You can also try the API in the [Sentor ML API Swagger Playground](https://sentor.app/docs).
214
202
 
215
203
  ## Contributing
216
204
 
@@ -5,7 +5,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
5
5
 
6
6
  setup(
7
7
  name="sentor-ml",
8
- version="1.0.2",
8
+ version="1.1.0",
9
9
  author="NIKX Technologies",
10
10
  author_email="sentor@nikx.one",
11
11
  description="A Python SDK for interacting with the Sentor ML API for sentiment analysis",
@@ -20,7 +20,7 @@ def test_client_initialization():
20
20
  client = SentorClient(api_key="test-key")
21
21
  assert isinstance(client, SentorClient)
22
22
  assert client.api_key == "test-key"
23
- assert client.base_url == "https://ml.sentor.app/api"
23
+ assert client.base_url == "https://sentor.app/api"
24
24
  assert client.timeout == 30
25
25
 
26
26
 
File without changes
File without changes
File without changes