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.1.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.1.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kdai_node_client-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 6cf156698ded59e7fbdbabe14c50c34e5054662976518ad70b23a2628729a237
MD5 e73f619d5d0ebf0156656962362a8a54
BLAKE2b-256 e4751bd9078b38d9f6b132d6bdbd164a98055b9e33e518e91c3bea4d5a51ed21

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kdai_node_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3024f140c25a4edef1cc37e972e71f2187e839304593434b57824ef1f2d03c36
MD5 7de296c1767355d19c4d451ced195df5
BLAKE2b-256 9bad8c0f790ab26b53c2ffdf458f4cad0a1331db3a41d149b06cdb5751b1dd79

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