Skip to main content

Tiiny SDK for edge computing power box communication

Project description

Tiiny SDK

A Python SDK for communicating with Tiiny edge computing power boxes via USB-C connection.

Overview

The Tiiny SDK provides a simple, OpenAI-like interface for interacting with Tiiny edge computing devices. The workflow involves:

  1. Detecting if the device is connected to the host computer
  2. Authenticating with the device
  3. Sending chat completions requests to the edge computing device

Installation

pip install tiiny-sdk

Quick Start

import tiiny

# Initialize the client
client = tiiny.TiinyClient()

# Check if device is connected
if client.is_device_connected():
    # Authenticate with the device
    client.login(api_key="your-api-key")
    
    # Send a chat completion request
    response = client.chat.completions.create(
        model="tiiny-edge",
        messages=[
            {"role": "user", "content": "Hello, edge device!"}
        ]
    )
    print(response.choices[0].message.content)
else:
    print("No Tiiny device found. Please check your USB connection.")

Features

  • Device Detection: Automatically detect connected Tiiny devices
  • Authentication: Secure login with API keys
  • Chat Completions: OpenAI-compatible chat interface
  • Error Handling: Comprehensive error handling and logging
  • Type Hints: Full type annotation support

Requirements

  • Python 3.8+
  • USB-C connection to Tiiny edge computing device
  • Valid API key for authentication

Development

Install development dependencies:

pip install -e ".[dev]"

Run tests:

pytest

License

MIT License - see LICENSE file for details.

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

tiiny_sdk-0.1.2.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

tiiny_sdk-0.1.2-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file tiiny_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: tiiny_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for tiiny_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ef5f8eeea0b767094c88eac822ca71311f523d318b9cac263c27d4ff3338052e
MD5 e38ac360bcd21e403961d38cff83e3ce
BLAKE2b-256 6414cd2e349bd51158b42246f3e931c7c5fa13cd4d997a8fc8730718a282080f

See more details on using hashes here.

File details

Details for the file tiiny_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tiiny_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for tiiny_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 10cd36cd3c8e970cc2dcea1ddadae9df917fd9953ef2f2c4a98f94efb64a513c
MD5 b3ee1967e6c3597d7052fa5a4ca5d0f7
BLAKE2b-256 e1d1d44f7e4bbbffcb6935ca881b0a47b5f2bfb2a41c7da35b8d4733131fc917

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