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.4.tar.gz (21.3 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.4-py3-none-any.whl (20.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiiny_sdk-0.1.4.tar.gz
  • Upload date:
  • Size: 21.3 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.4.tar.gz
Algorithm Hash digest
SHA256 43f6080a7d99f1d00e0d03548a7ba2c6695a8742c804a5a557a1a6940dc5a110
MD5 c176ab7c5c29932cda86969e8ccb3d62
BLAKE2b-256 0540f07f57ba909fc625f26e64f05c8728860692d83227461fd182952531d5b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tiiny_sdk-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 20.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fac929b69692e0ee64602e46dd4711fd73e4186e4c2adadb3c9a0f8b1b1fa298
MD5 6431d76aa3ee1227d0bd58912bec24e9
BLAKE2b-256 edb63b191eebdbe83055e1289a83eb825d17355bce4f78b7be194073ec900e69

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