semvec/pypi-packages huggingface dataset:
aliyun-api-py 1.1.5
一个简单的阿里云API Python封装库
License: MIT
Requires Python: >=3.6.0


# Aliyun API Python
一个简单的阿里云API Python封装库
## 使用API封装库
```python
import aliyun_api_py

# 创建API请求
request = aliyun_api_py.Api(access_key_id, access_key_secret, http_method, host, uri, x_acs_action, x_acs_version,algorithm)
request.param["your-param"] = "sth"
request.body["your-body"] = "sth"

try:
    print(request.exec())
except ConnectionError as e:
    print(e)
```
`access_key_id`：阿里云AccessKey ID

`access_key_secret`：阿里云AccessKey Secret

`http_method`：http请求方式，例如`POST`

`host`：服务地址，详见[服务区域列表](https://api.aliyun.com/product/Ecs)

`uri`：资源路径

`x_acs_action`：API名称

`x_acs_version`：API版本

`algorithm`：签名算法，默认为`ACS3-HMAC-SHA256`，一般情况下无需更改

更多参数信息详见[请求结构和签名机制](https://help.aliyun.com/zh/sdk/product-overview/v3-request-structure-and-signature)
### 返回格式
当请求正确发出时，返回格式如下：
```json
{
  "status_code": "状态码",
  "headers": "响应头",
  "body": "返回的内容，参见对应API文档"
}
```
若请求出错（不包括HTTPError），则会抛出异常
## 使用SDK
**目前SDK随缘更新，碰到自己需要的API可能会随手写个SDK方便调用**

API相关信息详见[阿里云API文档](https://api.aliyun.com/document)
```python
import aliyun_api_py

# 调用请求函数（以重启ECS为例）
request = aliyun_api_py.Ecs(access_key_id, access_key_secret, host)
print(request.reboot_instance(instance_id, force_stop, dry_run))
```
### ECS
`ecs.reboot_instance(instance_id, force_stop, dry_run)`：重启ECS实例
osagent 0.1.1
osagent
License: MIT
Requires Python: >=3.10

# OSAgent

OSAgent is a demo application designed to assist users through voice commands on their computers. It supports Ubuntu, Windows, and macOS systems, can run in the background, and integrates voice input. The application leverages advanced models based on the [OSWorld](https://os-world.github.io/) benchmark for quick integration and efficient functionality.

## Features

- **Cross-Platform**: Works on Ubuntu, Windows, and macOS.
- **Background Operation**: Continuously runs without disrupting other tasks.
- **Voice Input**: Accepts and processes voice commands.
- **Advanced Model Integration**: Utilizes OSWorld benchmark models for enhanced performance.

## Installation and Running

To get started with OSAgent, follow these steps:

1. Set your OpenAI API key:
   ```shell
   export OPENAI_API_KEY="YOUR_KEY"
   ```

2. Install the OSAgent package:
   ```shell
   pip install osagent
   ```

3. Run the main agent module:
   ```shell
   python -m osagent.agents.main
   ```

**Note:** On macOS, you may receive popups requesting network, screenshot, or accessibility permissions. Please grant these permissions for OSAgent to function correctly.

## Usage

In default the program run in voice command feature, please press and hold the combination of `shift + ctrl + x`, then speak your instruction and release the keys to process the command.

For more detailed information, please refer to our [documentation](https://os-world.github.io/).