semvec/pypi-packages huggingface dataset:
dxgiss 0.1.0
A Python Package to ScreenShot Using DXGI API
Requires Python: >=3.8

# DXGISS Python Wrapper

轻量级的 Windows 屏幕捕获封装，基于本地 `DXGISS.dll`（使用 DXGI）。提供一个简单的 Python 类 `DXGI` 用于设置捕获区域并获取帧作为 `numpy.ndarray`。

## 特性
- 通过 DirectX/DXGI 高效捕获屏幕
- 返回 `numpy` 数组：形状为 `(height, width, channels)`，数据类型为 `uint8`
- 可选保留 Alpha 通道（BGRA）或仅 BGR

## 要求
- Windows（Win32 API + DXGI）
- Python 3.8+
- `numpy`
- 本地 DLL：`DXGISS/DXGISS.dll`（必须随包一起提供）

## 安装
1. 确保 `DXGISS.dll` 位于包资源路径：`DXGISS/DXGISS.dll`
2. 安装 Python 依赖：
```bash
pip install numpy
```
3. 以可编辑模式安装项目（可选）：
```bash
pip install -e .
```

## 使用示例
```python
from dxgiss import DXGI
import numpy as np

# 创建对象：默认自动设置为全屏捕获
cap = DXGI(autoRegion=True, needAlphaChannel=False)

# 捕获一帧
img = cap.capture_frame()  # 返回 shape = (height, width, 3) 或 (height, width, 4)

# 示例：显示信息
print(img.shape, img.dtype)  # e.g. (1080, 1920, 3) uint8

# 释放资源
cap.release()
```

## API（简要）
- `DXGI(autoRegion=True, needAlphaChannel=False)`
  - `autoRegion`: 是否自动设置为全屏（bool）
  - `needAlphaChannel`: 是否保留 Alpha（bol）
- `set_capture_region(x, y, width, height)`
  - 设置捕获区域（像素坐标与尺寸）
- `capture_frame() -> numpy.ndarray`
  - 捕获并返回一帧；通道数由构造参数决定（3 = BGR, 4 = BGRA）
- `release()`
  - 释放底层捕获实例

## 常见问题
- 找不到 DLL：确认 `DXGISS/DXGISS.dll` 路径正确且包含在包资源中。
- 捕获失败：确认运行环境为 Windows 并且有必要的 DXGI 支持；检查是否有权限或显示驱动问题。

## 许可证
请根据项目需要添加合适的许可证文件（例如 `LICENSE`）。
```
dingtalk-client-rick 0.1.0
Add your description here
Requires Python: >=3.13

# DingTalk Client Rick

一个基于 Python 的钉钉开放平台 API 客户端，封装了常用的功能模块，支持自动 Token 管理、消息发送、多维表格操作以及文件上传等功能。

## 功能特性

- **自动鉴权**：内置 Token 缓存与自动刷新机制，无需手动管理 Access Token。
- **用户管理**：支持用户搜索、详情查询及 UnionID 获取。
- **消息推送**：封装了机器人单聊消息发送（支持文本、Markdown 格式）。
- **多维表格**：提供对钉钉多维表格（Aitable）的完整操作支持（增删改查）。
- **文件上传**：支持小文件直传和大文件分片上传，自动识别媒体类型。

## 安装说明

本项目使用 `uv` 进行依赖管理。

```bash
# 克隆项目
git clone <repository_url>
cd dingtalk_client_rick

# 安装依赖
uv sync
```

## 配置指南

在项目根目录下创建 `.env` 文件，并配置你的钉钉应用凭证：

```env
AppKey=你的AppKey
AppSecret=你的AppSecret
```

## 使用示例

### 1. 初始化客户端

```python
from dingtalk_client_rick.base import DingTalk

# 方式一：自动读取环境变量中的 AppKey 和 AppSecret
client = DingTalk()

# 方式二：手动传入凭证
client = DingTalk(app_key="your_key", app_secret="your_secret")
```

### 2. 用户管理

```python
from dingtalk_client_rick.user import User

user_client = User()

# 搜索用户
users = user_client.get_user_info("张三")

# 获取用户详情及 UnionID
user_info = user_client.get_union_id("张三")
print(f"User UnionID: {user_info.get('unionid')}")
```

### 3. 多维表格操作

```python
from dingtalk_client_rick.table import AiRecord

# 初始化记录操作客户端
record_client = AiRecord(
    sheetIdOrName="你的工作表名称或ID",
    baseId="你的应用BaseID",
    unionId="操作人的UnionID"
)

# 获取记录详情
detail = record_client.detail(recordId="记录ID")

# 更新记录
record_client.update([
    {
        "id": "记录ID",
        "fields": {
            "字段名": "新值",
            "状态": "已完成"
        }
    }
])
```

### 4. 文件上传

```python
from dingtalk_client_rick.uploadfile import AiUploadFile

# 初始化上传客户端
uploader = AiUploadFile(
    docId="你的文档/BaseID",
    unionId="操作人的UnionID"
)

# 上传文件
file_path = "/path/to/your/image.jpg"
result = uploader.upload_file_complete(file_path)

if result["status"] == "success":
    print(f"上传成功，资源链接: {result['url']}")
```

### 5. 发送消息

```python
from dingtalk_client_rick.bot import Bot
from dingtalk_client_rick.message import TextMessage

bot = Bot()

# 发送文本消息
msg = TextMessage(content="你好，这是来自 Python 客户端的消息")
bot.send_text_message(userids=["用户ID列表"], message=msg)
```

## 依赖列表

- python >= 3.13
- requests
- python-dotenv
- cachetools
- jsonpath-ng
- tqdm

## 许可证

MIT License
simple-carla 2.7.0
An easy-to-use, object-oriented interface to the carla plugin host.

# simple_carla

An easy-to-use, object-oriented interface to the carla plugin host.

## Installation

(Not so easy 😒)

You must install carla (including python resources), for this package to work.
After installing carla, check that the following directories exist on your
system:

* /usr/local/lib/carla OR /usr/lib/carla
* /usr/local/share/carla OR /usr/share/carla

On my machine, running carla --version produces the following output:

	Using Carla version 2.6.0-alpha1
	  Python version: 3.10.12
	  Qt version:     5.15.3
	  PyQt version:   5.15.6
	  Binary dir:     /usr/local/lib/carla
	  Resources dir:  /usr/local/share/carla/resources

Checking with "apt-file", it appears that the python resources are not packaged
in the official Debian / Ubuntu repository. You may have to download, build,
and install from source. (I did.)

If you do install from source, you might want to look at tweaking the "-mtune" option in the compiler flags. When I compiled, I replaced every instance of "-mtune=generic" with "-mtune=native -march-native". Since you are building for your machine only, this flag is appropriate.

> For more information, see [GCC optimization - Gentoo wiki](https://wiki.gentoo.org/wiki/GCC_optimization)
kbackup 0.2.1
kubernetes manifest backup with well-structured folder
Requires Python: >=3.10

# kbackup

[![PyPI](https://img.shields.io/pypi/v/kbackup.svg)](https://pypi.org/project/kbackup/)
[![Changelog](https://img.shields.io/github/v/release/Kyuubang/kbackup?include_prereleases&label=changelog)](https://github.com/Kyuubang/kbackup/releases)
[![Tests](https://github.com/Kyuubang/kbackup/actions/workflows/test.yml/badge.svg)](https://github.com/Kyuubang/kbackup/actions/workflows/test.yml)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/Kyuubang/kbackup/blob/master/LICENSE)

![demo](https://github.com/user-attachments/assets/bd19b5b8-20b2-4730-986f-3cba3e23f5ab)

kubernetes manifest backup with well-structured folder

## Installation

Install this tool using `pip`:
```bash
pip install kbackup
```
## Usage

For help, run:
```bash
kbackup --help
```
You can also use:
```bash
python -m kbackup --help
```
## Development

To contribute to this tool, first checkout the code. Then create a new virtual environment:
```bash
cd kbackup
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```