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.1.tar.gz (11.2 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.1-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tiiny_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 11.2 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.1.tar.gz
Algorithm Hash digest
SHA256 fc9973999fa99d7641078551b4e8e8f5fb8827a07e0dafb9f6ee858aa53c0437
MD5 e9fe73f572256f2f18a045ff020cea61
BLAKE2b-256 275b455983f3a88c1759bee47012dd5bc6eb960a0a8a37be68cc9073a8c84492

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tiiny_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dec520d0abb99e41efe9ab8e21af6d2d64c35557add46f9f3cfc7474c63ee458
MD5 f52d27cc1d58ce03cb310da526765ea6
BLAKE2b-256 536507bf6a069e92af6887ba691e15dabb74b38a49b1a835a0f6339410ee4ab1

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