semvec/pypi-packages huggingface dataset:
ocr-my 0.1.2
A versatile OCR and document processing command-line tool.
Requires Python: >=3.8

# My OCR Tool

A versatile OCR and document processing command-line tool, built with Python and the `docling` library. It uses **RapidOCR** by default and also supports EasyOCR.

## Features

- Process various file types: PDF, PNG, JPG, DOCX, XLSX, CSV.
- Supports `rapidocr` (default) and `easyocr` engines, configurable via YAML files.
- Outputs processed documents into Markdown, JSON, and YAML formats.

## Installation

First, ensure you have Python 3.8+ installed.

You can install the tool from PyPI. The default engine, `rapidocr`, is included automatically.

```bash
pip install myocr-tool
```
### Test the Optional Engine (EasyOCR)
```bash
my-ocr-tool --ocr-engine easyocr "path/to/your/image.png"
```

### Test with a Configuration File
```bash
my-ocr-tool --config rapidocr_config.yaml "path/to/your/image.png"
```
fh2-drc-mcp-server 0.1.9
FH2 DRC MCP Server - 无人机远程控制MCP服务器
Requires Python: >=3.10

# FH2 DRC MCP Server

远程控制 MCP 服务器

## 功能特性

### 🤖 智能飞行控制（推荐使用）
- `fly_to_point_smart` - **智能飞向目标点**（自动判断状态：起飞/创建/更新）
- `get_flight_status` - 查询飞行状态

### 设备管理
- `cloud_controls_create` - 申请云控权限

### 飞行控制
- `drone_return_home` - 返航

### 相机控制
- `camera_photo_take` - 拍照（自动切换到拍照模式）
- `camera_aim` - 调整相机角度（支持x/y坐标控制）
- `camera_look_at` - 相机朝向指定地理坐标位置
- `gimbal_reset_horizontal` - 云台水平复位
- `gimbal_reset_downward` - 云台向下复位（90度垂直向下）
- `camera_tilt_down` - 镜头俯视45度
- `camera_mode_switch` - 切换相机模式（拍照/录像/智能低光/全景拍照）
- `camera_lens_switch` - 切换镜头类型（红外/广角/变焦）

### 录像功能
- `camera_recording_task` - 完整录像任务流程（自动开始→录像→停止→切换回拍照模式）

### POI任务
- `poi_enter` - 开始POI环绕
- `poi_exit` - 停止POI环绕

### 环拍功能
- `panoramic_shooting` - 全景拍摄（10个位置环拍 + 向下拍照，共11张照片）

### 状态监控
- `get_flight_status` - 查询飞行状态

### 地图Pin点
- `get_pin_points` - 查询所有Pin点
- `create_pin_point` - 创建Pin点标记
- `get_default_group_id` - 获取默认分组ID

### AI告警
- `get_alert_config` - 查询告警配置
- `enable_llm_alert` - 快速开启LLM告警
- `disable_alert` - 关闭告警

## 安装运行

### 1. 激活虚拟环境并安装依赖

```bash
cd /Users/leslie.zhang/PycharmProjects/es-mcp-service/fh2-drc-mcp-server
source .venv/bin/activate
pip install -e .
```

### 2. 运行服务器

```bash
fh2-drc-mcp-server
```

或者直接使用 Python 运行：

```bash
python -m fh2_drc_mcp_server
```

## 在 Cursor 中配置

### 生产模式（真实飞行）

编辑 `~/.cursor/mcp.json` 文件，添加以下配置：

```json
{
  "mcpServers": {
    "fh2-drc-mcp-server": {
      "command": "/Users/leslie.zhang/PycharmProjects/es-mcp-service/fh2-drc-mcp-server/.venv/bin/python",
      "args": [
        "-m",
        "fh2_drc_mcp_server"
      ],
      "env": {
        "DRC_USER_TOKEN": "your-user-token-here"
      }
    }
  }
}
```

### Mock模式（开发测试，不真实飞行）

如果你需要在开发环境测试Agent调用，但不想真实控制无人机，可以启用Mock模式：

```json
{
  "mcpServers": {
    "fh2-drc-mcp-server": {
      "command": "/Users/leslie.zhang/PycharmProjects/es-mcp-service/fh2-drc-mcp-server/.venv/bin/python",
      "args": [
        "-m",
        "fh2_drc_mcp_server"
      ],
      "env": {
        "DRC_MOCK_MODE": "true"
      }
    }
  }
}
```

**Mock模式特性：**
- 🎭 所有API调用返回模拟数据
- ⚡ 起飞等待仅2秒（生产模式需30秒）
- ⚡ 飞行到达检测立即返回（生产模式需轮询等待）
- 📊 `fly_to_point_smart` 执行时间 ≈ 2-3秒（生产模式: 30-180秒）
- 🚫 不会真实控制无人机
- ✅ 适合Agent逻辑测试和调试

详细说明请参考 [MOCK_MODE.md](./MOCK_MODE.md)

重启 Cursor 后即可使用。
python-requestr 0.16
requestr

### requestr
A wrapper library for requests, optimised for JSON and HTML

Installation:
`pip install python-requestr`

```
import requestr

url = 'https://jsonplaceholder.typicode.com/posts/1'

response = requestr.get(url)
>>> response.data
{
  'userId': 1,
  'id': 1,
  'title': 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
  'body': 'quia et suscipit...'
}
>>> response.data.title
'sunt aut facere repellat provident occaecati excepturi optio reprehenderit'
```

```
import requestr

url = 'https://example.com'

response = requestr.get(url)

h1_tag = response.soup.select_one('h1')
>>> h1_tag.text
'Example domain'
```

```
from requestr import Session

session = Session()

url = 'https://jsonplaceholder.typicode.com/posts/1'

response = session.get(url)
>>> response.data
{
  'userId': 1,
  'id': 1,
  'title': 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
  'body': 'quia et suscipit...'
}
>>> response.data.id
1
```

```
from requestr import requestr_futures
from time import sleep

url = 'https://jsonplaceholder.typicode.com/posts/1'

future = requestr_futures.get(url) # Request is executed in background thread without blocking code execution
sleep(3)
response = future.result()
>>> response.data
{
  'userId': 1,
  'id': 1,
  'title': 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
  'body': 'quia et suscipit...'
}
>>> response.data.title
'sunt aut facere repellat provident occaecati excepturi optio reprehenderit'
```

```
from requestr import FuturesSession
from time import sleep

session = FuturesSession()

url = 'https://jsonplaceholder.typicode.com/posts/1'

response = session.get(url) # Request is executed in background thread without blocking code execution
sleep(3)
response = future.result()
>>> response.data
{
  'userId': 1,
  'id': 1,
  'title': 'sunt aut facere repellat provident occaecati excepturi optio reprehenderit',
  'body': 'quia et suscipit...'
}
>>> response.data.id
1
```
himpunan-sigma 0.2.2
Implementasi Himpunan Python untuk Tugas Matematika Diskrit
Requires Python: >=3.6

# Implementasi Himpunan Python (Tugas Matdis)

Ini adalah sebuah paket Python sederhana yang mengimplementasikan konsep Himpunan (Set) untuk tugas mata kuliah Matematika Diskrit.

Paket ini dibuat murni menggunakan Python, tanpa bergantung pada `set` bawaan Python, dan menggunakan *magic methods* untuk operasi himpunan.

## ✨ Fitur

Kelas `Himpunan` ini mendukung operasi-operasi berikut:

* **Gabungan (Union):** `h1 + h2`
* **Irisan (Intersect):** `h1 / h2`
* **Selisih (Difference):** `h1 - h2`
* **Selisih Simetris:** `h1 * h2`
* **Cartesian Product:** `h1 ** h2`
* **Pengecekan Subset:** `h1 <= h2` (subset) atau `h1 < h2` (proper subset)
* **Pengecekan Superset:** `h1 >= h2`
* **Pengecekan Kesamaan:** `h1 == h2`
* **Komplemen:** `h1.komplement(S)`
* **Himpunan Kuasa (Power Set):** `h1.ListKuasa()`
* **Kardinalitas Himpunan Kuasa:** `abs(h1)`

## 📦 Instalasi

Kamu bisa meng-install paket ini menggunakan `pip`:

```bash
pip install himpunan-sigma==0.2.1
netkiller-devops 0.7.12
DevOps of useful deployment and automation
Requires Python: >=3.12

DevOps Tools
====

OS Software Configure Managment

Install
-------

	pip install netkiller-devops -i https://pypi.tuna.tsinghua.edu.cn/simple

### Docker 

	root@netkiller ~# docker run --rm -it --name=netkiller --entrypoint=sh netkiller-devops:latest

### PATH Variable

	$ cp share/profile.d/devops.sh /etc/profile.d/
	
	or 
	
	$ cat >> /etc/profile.d/devops.sh <<'EOF'
	export PATH=/srv/devops/bin:$PATH
	EOF
	
	
Deployment
----------
[Software deployment tools](https://github.com/netkiller/devops/blob/master/doc/deployment.md).	

### Ubuntu 编译安装

	$ cd /usr/local/src/
	$ git clone https://github.com/netkiller/devops.git
	$ cd devops
	$ python3 setup.py sdist
	$ python3 setup.py install

### CentOS 编译安装

	$ cd /usr/local/src/
	$ git clone https://github.com/netkiller/devops.git
	$ cd devops
	$ python3 setup.py sdist
	$ python3 setup.py install --prefix=/srv/devops
	
	or
	
	python36 setup.py sdist
  	python36 setup.py install --prefix=/srv/devops

### Deploy Pypi

	$ pip install setuptools wheel twine
	$ python setup.py sdist bdist_wheel
	$ twine upload dist/netkiller-devops-x.x.x.tar.gz 

指定镜像

	$ pip3 install netkiller-devops --upgrade -i https://pypi.org/project

Backup
------
[Data backup tools](https://github.com/netkiller/devops/blob/master/doc/backup.md).	
[Database backup](https://github.com/netkiller/devops/blob/master/doc/database.md).	

OS Configuration file versioning
-----
[osconf](https://github.com/netkiller/devops/blob/master/doc/osconf.md).	


# Donations

We accept PayPal through:

https://www.paypal.me/netkiller

Wechat (微信) / Alipay (支付宝) 打赏:

https://www.netkiller.cn/home/donations.html