clisonix-lab 0.1.0__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.
@@ -0,0 +1,33 @@
1
+ """Lab package for Clisonix."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import json
6
+ import urllib.request
7
+ from typing import Optional
8
+
9
+ __all__ = ["ping", "VERSION"]
10
+ VERSION = "0.1.0"
11
+
12
+
13
+ def _request(method: str, path: str, base_url: str, api_key: Optional[str], payload: Optional[dict] = None) -> dict:
14
+ url = base_url.rstrip("/") + path
15
+ data = None
16
+ headers = {"Content-Type": "application/json", "User-Agent": "clisonix-lab/0.1.0"}
17
+ if api_key:
18
+ headers["X-API-Key"] = api_key
19
+ if payload is not None:
20
+ data = json.dumps(payload).encode("utf-8")
21
+ req = urllib.request.Request(url, data=data, headers=headers, method=method)
22
+ with urllib.request.urlopen(req, timeout=30) as response:
23
+ raw = response.read().decode("utf-8")
24
+ return json.loads(raw) if raw else {}
25
+
26
+
27
+ def ping(base_url: str = "https://www.clisonix.com", api_key: Optional[str] = None, payload: Optional[dict] = None) -> dict:
28
+ """Call default endpoint for this package."""
29
+ return _request("GET", "/api/system-status", base_url, api_key)
30
+
31
+
32
+
33
+
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: clisonix-lab
3
+ Version: 0.1.0
4
+ Summary: Research lab service integration helpers and health utilities.
5
+ Project-URL: Homepage, https://developers.clisonix.com
6
+ Project-URL: Documentation, https://developers.clisonix.com/docs
7
+ Project-URL: Repository, https://github.com/clisonix/clisonix-cloud
8
+ Author-email: Clisonix <support@clisonix.cloud>
9
+ License: MIT
10
+ Keywords: ai,api,clisonix,sdk
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Requires-Python: >=3.10
20
+ Requires-Dist: urllib3>=2.0.0
21
+ Description-Content-Type: text/markdown
22
+
23
+ # clisonix-lab
24
+
25
+ Research lab service integration helpers and health utilities.
26
+
27
+ ## Install
28
+
29
+ `bash
30
+ pip install clisonix-lab
31
+ `
32
+
33
+ ## Quick Start
34
+
35
+ ``python
36
+ from clisonix_lab import ping
37
+
38
+ result = ping()
39
+ print(result)
40
+ `
41
+
42
+ ## Default Endpoint
43
+
44
+ - Method: GET
45
+ - Path: /api/system-status
46
+
47
+ ## Docs
48
+
49
+ - https://developers.clisonix.com
50
+ - https://developers.clisonix.com/docs
51
+
52
+
@@ -0,0 +1,4 @@
1
+ clisonix_lab/__init__.py,sha256=DRmL917Knkl7yUkvx3DoWdPUCNMLzZqnkLdF6wONP_c,1058
2
+ clisonix_lab-0.1.0.dist-info/METADATA,sha256=oAdvDc9zY1ICBi3W3xV0jbDplJa27qACgivVftAztC4,1254
3
+ clisonix_lab-0.1.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
4
+ clisonix_lab-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.30.1
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any