KDAI Node Client
The official client library for connecting nodes to the KDAI distributed AI platform.
Features
- Simple node registration and authentication
- Secure WebSocket-based communication with KDAI hub
- Task management for AI workloads
- Resource utilization monitoring
- Simple CLI interface
- Robust HTTP/HTTPS handling with improved connectivity
Installation
pip install kdai-node-client
Quick Start
Register a New Node
To register a new node with your KDAI server:
# Register a new node
kdai-node register --server-url https://your-kdai-server.com --name "My AI Node"
This will generate an authentication token for your node and save the configuration.
Start the Node
Once registered, you can start the node:
# Start the node
kdai-node start
The node will connect to the KDAI server, report its system information, and start accepting tasks.
Advanced Usage
Monitor Node Status
Check the status of your node:
kdai-node status
Stop Node
Stop a running node:
kdai-node stop
Programmatic Usage
You can also use the KDAI Node Client as a library in your Python code:
from kdai_node_client import KDAINode
# Create a node instance
node = KDAINode(server_url="https://your-kdai-server.com", node_name="My AI Node")
# Register the node
node.register()
# Start the node
node.start()
# To stop the node
node.stop()
API Reference
Full API documentation is available at https://docs.kdai.io/node-client/
Requirements
- Python 3.8 or higher
- Working network connection to KDAI server
- WebSocket support
Recent Changes
Version 0.1.1 (2025-03-27)
- Fixed HTTP to HTTPS redirect handling to improve connection reliability
- Added proper error handling for network connectivity issues
- See CHANGELOG.md for the full history of changes
License
MIT License
Metadata
Release files for kdai-node-client 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kdai_node_client-0.2.3.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kdai_node_client-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.8 kB
Release files / kdai_node_client-0.2.3.tar.gz
| Download URL | kdai_node_client-0.2.3.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44e62183a545c7d6b9044047db3fd456a634be66103e33e23cd8eccecd5dc26f
|
|
BLAKE2b-256 checksum How to use checksums |
4c0538890b6f83ca9def122270fa7d7cd061209a5639e2454cf41fa0293e7271
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / kdai_node_client-0.2.3-py3-none-any.whl
| Download URL | kdai_node_client-0.2.3-py3-none-any.whl |
|---|---|
| Size | 17.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8495b664fb5b4fd369bd273214afadb63e1632f0de0ac895de027300ee0dd300
|
|
BLAKE2b-256 checksum How to use checksums |
5743aa4b06657563e1829f4f72d3269df2bca0653439a9a7549a4fc3a4852285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|