nini-client 0.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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Nini contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.5
2
+ Name: nini-client
3
+ Version: 0.1.0
4
+ Summary: Python client SDK for nini-service (skeleton)
5
+ Project-URL: Homepage, https://nini.flygpt.cc
6
+ Project-URL: Repository, https://github.com/xusai2014/Nini
7
+ Author-email: Jerry xu <xusai@presence.email>
8
+ License: MIT
9
+ License-File: LICENSE
10
+ Classifier: Environment :: Console
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Requires-Python: >=3.12
15
+ Requires-Dist: httpx>=0.28
16
+ Requires-Dist: nini-protocol==0.1.0
17
+ Requires-Dist: websockets>=13
18
+ Description-Content-Type: text/markdown
19
+
20
+ # nini-client
21
+
22
+ Async Python client SDK for a Nini daemon: REST calls, the event WebSocket, and
23
+ reconnect-from-`seq` handled for you.
24
+
25
+ ```bash
26
+ pip install nini-client
27
+ ```
28
+
29
+ ```python
30
+ from nini_client import NiniClient
31
+
32
+ async with NiniClient("http://127.0.0.1:4096", token=token) as client:
33
+ async for event in client.events(session_id=session, since=0):
34
+ print(event.seq, event.type)
35
+ ```
36
+
37
+ Speaks `nini-protocol` v1, so anything built on it stays compatible with every
38
+ released daemon. The official CLI, web console and mobile apps are clients of the
39
+ same surface.
40
+
41
+ Docs: <https://github.com/xusai2014/Nini> · License: MIT
@@ -0,0 +1,22 @@
1
+ # nini-client
2
+
3
+ Async Python client SDK for a Nini daemon: REST calls, the event WebSocket, and
4
+ reconnect-from-`seq` handled for you.
5
+
6
+ ```bash
7
+ pip install nini-client
8
+ ```
9
+
10
+ ```python
11
+ from nini_client import NiniClient
12
+
13
+ async with NiniClient("http://127.0.0.1:4096", token=token) as client:
14
+ async for event in client.events(session_id=session, since=0):
15
+ print(event.seq, event.type)
16
+ ```
17
+
18
+ Speaks `nini-protocol` v1, so anything built on it stays compatible with every
19
+ released daemon. The official CLI, web console and mobile apps are clients of the
20
+ same surface.
21
+
22
+ Docs: <https://github.com/xusai2014/Nini> · License: MIT
@@ -0,0 +1,30 @@
1
+ [project]
2
+ name = "nini-client"
3
+ version = "0.1.0"
4
+ description = "Python client SDK for nini-service (skeleton)"
5
+ readme = "README.md"
6
+ license = { text = "MIT" }
7
+ authors = [{ name = "Jerry xu", email = "xusai@presence.email" }]
8
+ classifiers = [
9
+ "Programming Language :: Python :: 3.12",
10
+ "License :: OSI Approved :: MIT License",
11
+ "Operating System :: OS Independent",
12
+ "Environment :: Console",
13
+ ]
14
+ requires-python = ">=3.12"
15
+ dependencies = [
16
+ "nini-protocol==0.1.0",
17
+ "httpx>=0.28",
18
+ "websockets>=13",
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://nini.flygpt.cc"
23
+ Repository = "https://github.com/xusai2014/Nini"
24
+
25
+ [build-system]
26
+ requires = ["hatchling"]
27
+ build-backend = "hatchling.build"
28
+
29
+ [tool.hatch.build.targets.wheel]
30
+ packages = ["nini_client"]