Skip to main content

Client library for connecting nodes to the KDAI distributed AI platform

Project description

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

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

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kdai_node_client-0.2.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kdai_node_client-0.2.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file kdai_node_client-0.2.0.tar.gz.

File metadata

  • Download URL: kdai_node_client-0.2.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for kdai_node_client-0.2.0.tar.gz
Algorithm Hash digest
SHA256 31cb6644e8cf8aa14b02c33695febe72ecdafcf18341c6346e9a8cf3a98d3e67
MD5 f123dccad12a4883bb23f85d35ca9d1b
BLAKE2b-256 ea09f2f40a73db4cfa82703086d115741b1fbcade719fd2bbb64d6aa8eb23afb

See more details on using hashes here.

File details

Details for the file kdai_node_client-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for kdai_node_client-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23a6fa7f6714b20c6339e3da4eafbe61e34d89b6f056e71d586dcbcb7feba038
MD5 04dbbb0fbee217d0b46058e599b6f5e7
BLAKE2b-256 f457e9a9e653b89abf3f83d688bab29049c379489b1a3e5978b2ee1654b71aad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page