semvec/pypi-packages huggingface dataset:
tiiny-sdk 0.1.4
Tiiny SDK for edge computing power box communication
License: MIT
Requires Python: >=3.8
Keywords: edge-computing, usb, sdk, ai

# 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

```bash
pip install tiiny-sdk
```

## Quick Start

```python
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:

```bash
pip install -e ".[dev]"
```

Run tests:

```bash
pytest
```

## License

MIT License - see LICENSE file for details.
pig-class 0.1.0
😊😊😊😊😊
License: MIT
Requires Python: >=3.6

# pig

😊😊😊😊😊

## 功能

`Pig` 类包含以下功能：

- 初始化猪的名字、编号，年龄默认为 1。
- `age_add()`：年龄增加 1 并返回当前年龄。
- `display()`：显示猪的名字、年龄和编号。
- `modify(modify_name, modify_serial_number)`：修改名字或编号，如果某个参数为 `None` 则提示用户输入。
- `pig_play(play_content)`：打印猪玩耍的内容。
- `pig_sleep(sleep_time)`：打印猪睡觉的时长。
- `pig_eat(food, food_time, quantity_of_food)`：打印猪进食的信息。

## 安装

你可以将本包克隆到本地并使用 `pip` 安装：

```bash

pip install pig-class
```
py2n 0.5.0
Python library for 2N® devices
License: MIT
Requires Python: >=3.9

# Py2N

<img src="https://user-images.githubusercontent.com/38865194/210242643-8f2cef4d-e426-4280-9263-63bee2b66eef.png" width=20% height=20%>

Asynchronous library to control [2N Telekomunikace® devices](https://www.2n.com)

**This library is under development**

## Requirements

- Python >= 3.9
- aiohttp

## Install
```bash
pip install py2n
```

## Example

```python
from py2n import Py2NDevice, Py2NConnectionData

import asyncio
import aiohttp

async def main():
    """Run with aiohttp ClientSession."""
    async with aiohttp.ClientSession() as session:
        await run(session)


async def run(websession):
    """Use library."""
    device = await Py2NDevice.create(
        websession,
        Py2NConnectionData(
            host="192.168.1.69",
            username="username",
            password="password",
        ),
    )

    await device.restart()

asyncio.run(main())
```