semvec/pypi-packages huggingface dataset:
frequenz-client-microgrid 0.18.2
Microgrid API client for Python
License: MIT
Requires Python: <4,>=3.11
Keywords: api, client, frequenz, grpc, lib, library, microgrid, python

# Frequenz Microgrid API Client

[![Build Status](https://github.com/frequenz-floss/frequenz-client-microgrid-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-client-microgrid-python/actions/workflows/ci.yaml)
[![PyPI Package](https://img.shields.io/pypi/v/frequenz-client-microgrid)](https://pypi.org/project/frequenz-client-microgrid/)
[![Docs](https://img.shields.io/badge/docs-latest-informational)](https://frequenz-floss.github.io/frequenz-client-microgrid-python/)

## Introduction

This project provides a Python client for the [Frequenz Microgrid
API](https://frequenz-floss.github.io/frequenz-api-microgrid/) that is more
idiomatic to use in Python than the automatically-generated gRPC client
provided by `protoc`.

## Supported Platforms

The following platforms are officially supported (tested):

- **Python:** 3.11
- **Operating System:** Ubuntu Linux 20.04
- **Architectures:** amd64, arm64

## Contributing

If you want to know how to build this project and contribute to it, please
check out the [Contributing Guide](CONTRIBUTING.md).
neo-attachment 0.0.1
Attachment APIS for neoxin
License: MIT
Requires Python: >=3.13

# neo-attachment

#### 介绍
基于fastapi + neo-xin实现的附件管理模块

#### 软件架构
软件架构说明


#### 安装教程

1.  xxxx
2.  xxxx
3.  xxxx

#### 使用说明

1.  xxxx
2.  xxxx
3.  xxxx

#### 参与贡献

1.  Fork 本仓库
2.  新建 Feat_xxx 分支
3.  提交代码
4.  新建 Pull Request


#### 特技

1.  使用 Readme\_XXX.md 来支持不同的语言，例如 Readme\_en.md, Readme\_zh.md
2.  Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
3.  你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
4.  [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目
5.  Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
6.  Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
drawio2png-mcp 0.1.0
MCP Server for converting Draw.io diagrams to PNG
License: MIT
Requires Python: >=3.10
Keywords: converter, diagram, drawio, mcp, png

# drawio2png-mcp

将 Draw.io 图表转换为 PNG 图片的 MCP 服务。

## 安装

```bash
uvx drawio2png-mcp
```

## 配置

在 MCP 客户端配置中添加：

```json
{
  "mcpServers": {
    "drawio": {
      "command": "uvx",
      "args": ["drawio2png-mcp"]
    }
  }
}
```

## 前置要求

需要安装 [draw.io 桌面版](https://github.com/jgraph/drawio-desktop/releases)。

如果 draw.io 不在默认路径，可通过 `DRAWIO_PATH` 环境变量指定：

```json
{
  "mcpServers": {
    "drawio": {
      "command": "uvx",
      "args": ["drawio2png-mcp"],
      "env": {
        "DRAWIO_PATH": "/path/to/drawio"
      }
    }
  }
}
```
textual-logging 0.2.0
A logging widget for Textual applications to display Python logging records
License: MIT
Requires Python: >=3.7

# Textual widget to display python logging log entry

The goal of `textual_logging.Logging` widget is to display log from python logging library inside a textual application.
The records are saved in order to change format later and to speedup display.

The logger can be specified when instanciating the widget. By default the root logger is used.
This allow to have multiple widget on the same application showing different logger.

The logger can use any formatter.
The logger must have a `textual_logging.LoggingHandler` handler.

## Example

The file [runner.py](./src/textual_logging/runner.py) contain a example application `textual_logging.TextualLogger` that use the widget.
It also conain a function `textual_logging.run` that can be used directly with a `Callable`.

The file [demo.py](./src/textual_logging/demo.py) show a basic usage.

## Demo

Run:

```bash
python3 -m textual_logging
```

it will log 10'000 messages in each severity.
You can press `t` to show/hide log record time.
You can press `l` to show/hide log record level.
You can press `m` to show/hide log record message.
You can press `c` to clear the logs.
You can press `s` to change severity.
To exit, press `Ctrl + q`.
django-buttons 1.0.4
An application providing some template-tags to add buttons on pages
License: MIT
Requires Python: >=3.9
Keywords: Bootstrap, Django, FontAwesome

# django-buttons

This application provides some simple template tags to insert buttons into templates.

## Installation

Install application with pypi:

```sh
$ pip install django-buttons[fa5]  # Installs django-fontawesome5
$ pip install django-buttons[fa6]  # Installs django-fontawesome6
```

Add application to your INSTALLED_APPS:

```python
INSTALLED_APPS = [
    ...
    'buttons',
    ...
]

BUTTONS_FONTAWESOME_VERSION = 4  # Use 5 to use fontawesome-5 as icon library
```

## Use buttons in your templates

```html
 {% load buttons_tags %}
...
{% btn_home %}
```

Buttons can have some parameters :

+ **url**: target url
+ **title**: displayed text
+ **icon**: fa aware name, ie. 'home' for
  [fa-home](http://fontawesome.io/icon/home/)
+ **icon_position**: Position of the icon, 'right', 'left' or 'none'
  (no icon displayed) ...

**Enjoy !**
viser-keyframe 1.0.18
3D visualization + Python, with multi-column GUI layouts for keyframe editors
License: MIT
Requires Python: >=3.8

# viser-keyframe

[![PyPI version](https://img.shields.io/pypi/v/viser-keyframe.svg)](https://pypi.org/project/viser-keyframe/)
[![Python versions](https://img.shields.io/pypi/pyversions/viser-keyframe.svg)](https://pypi.org/project/viser-keyframe/)

A fork of [viser](https://github.com/nerfstudio-project/viser) with additional features for building keyframe editors and multi-column GUI layouts.

## What's New in viser-keyframe

This fork adds the following features on top of the original viser:

### 1. Multi-Column GUI Layouts

Create side-by-side control panels with `gui.add_columns()`:

```python
import viser

server = viser.ViserServer()

# Create a 3-column layout
columns = server.gui.add_columns(3)

# Add controls to each column
with columns.column(0):
    server.gui.add_slider("Left Arm", 0, 1, 0.5)
    
with columns.column(1):
    server.gui.add_button("Center")
    
with columns.column(2):
    server.gui.add_slider("Right Arm", 0, 1, 0.5)
```

You can also specify custom column widths:

```python
columns = server.gui.add_columns(3, widths=[0.3, 0.4, 0.3])
```

### 2. Slider Precision Fix

Fixes floating-point display noise in sliders (e.g., `0.30000000001` → `0.3`), with improved input validation and dynamic width for high-precision values.

## Installation

```bash
pip install viser-keyframe
```

## Usage

This package is a drop-in replacement for viser. Just install it and import as usual:

```python
import viser

server = viser.ViserServer()

# All original viser features work
server.scene.add_frame("/world")

# Plus the new multi-column layout
columns = server.gui.add_columns(2)
```

## Original Viser Features

All features from the original viser are included:

- API for visualizing 3D primitives
- GUI building blocks: buttons, checkboxes, text inputs, sliders, etc.
- Scene interaction tools (clicks, selection, transform gizmos)
- Programmatic camera control and rendering
- Web-based client for easy use over SSH

For full documentation, see the original viser docs: https://viser.studio

## Credits

This package is a fork of [viser](https://github.com/nerfstudio-project/viser) by the Nerfstudio team.

To cite the original viser project:

```bibtex
@misc{yi2025viser,
      title={Viser: Imperative, Web-based 3D Visualization in Python},
      author={Brent Yi and Chung Min Kim and Justin Kerr and Gina Wu and Rebecca Feng and Anthony Zhang and Jonas Kulhanek and Hongsuk Choi and Yi Ma and Matthew Tancik and Angjoo Kanazawa},
      year={2025},
      eprint={2507.22885},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2507.22885},
}
```

## License

MIT License (same as original viser)
hwdocs-mcp 0.1.2
MCP server for hardware documentation search and management
License: MIT
Requires Python: >=3.10
Keywords: ai, claude, cursor, documentation, embedded, hardware, mcp

# hwdocs-mcp

MCP (Model Context Protocol) 服务器，为 Cursor、Claude Desktop 等 AI 编辑器提供文档解析和语义搜索能力。

## 特性

- **PDF 解析**：将 PDF、DOCX 等文档解析为可搜索的 Markdown（通过 LlamaIndex Cloud）
- **语义搜索**：使用本地 embeddings 进行语义关键词搜索（免费）
- **Workspace 缓存**：缓存 embeddings 加速重复搜索
- **配额管理**：追踪和管理文档解析配额
- **AI 编辑器集成**：支持 Cursor、Claude Desktop 等 MCP 兼容编辑器

## 安装

```bash
pip install hwdocs-mcp
```

同时需要安装 semtools CLI：

```bash
npm install -g @llamaindex/semtools
```

## 快速开始

### 1. 配置编辑器

**Cursor** (`~/.cursor/mcp.json`):
```json
{
  "mcpServers": {
    "hwdocs": {
      "command": "hwdocs-mcp"
    }
  }
}
```

**Claude Desktop** (`~/.claude/claude_desktop_config.json`):
```json
{
  "mcpServers": {
    "hwdocs": {
      "command": "hwdocs-mcp"
    }
  }
}
```

### 2. 登录（可选，用于配额管理）

```bash
hwdocs login --token YOUR_TOKEN
```

### 3. 在 AI 编辑器中使用

```
用户: "解析 docs 文件夹里的 PDF 文件"
AI: → parse_documents(files=["./docs"], pattern="*.pdf")

用户: "搜索 PWM 配置相关的内容"
AI: → search_parsed(query="PWM configuration")

用户: "根据搜索结果写一个定时器初始化函数"
AI: → 生成代码...
```

## 可用工具

| 工具 | 说明 | 配额消耗 |
|------|------|----------|
| `parse_documents` | 解析文档为 Markdown，支持目录和通配符 | ✅ 是 |
| `search_documents` | 搜索指定文件，支持目录和通配符 | ❌ 否（本地） |
| `search_parsed` | 搜索所有已解析的文件 | ❌ 否（本地） |
| `list_parsed` | 列出所有已解析的文件 | ❌ 否 |
| `manage_workspace` | 管理 workspace 缓存 | ❌ 否 |
| `get_quota` | 查询剩余配额 | ❌ 否 |

### 工具参数示例

**parse_documents**
```python
parse_documents(
    files=["./docs", "*.pdf", "report.docx"],  # 支持目录、通配符、具体文件
    pattern="*.pdf"  # 可选，过滤文件类型
)
```

**search_parsed**
```python
search_parsed(
    query="timer interrupt, PWM",  # 关键词搜索效果最好
    filter="MCU",                   # 可选，按文件名过滤
    top_k=5,                        # 返回结果数
    n_lines=30,                     # 上下文行数（建议 30-50）
    ignore_case=True                # 大小写不敏感（推荐）
)
```

**manage_workspace**
```python
# 创建/选择 workspace（后续搜索自动使用）
manage_workspace(action="use", name="my_project")

# 查看状态
manage_workspace(action="status")

# 清理过期文件
manage_workspace(action="prune")
```

## 使用场景

### 电机控制软件开发

```
1. 解析芯片数据手册
   → parse_documents(files=["FU6816_datasheet.pdf"])

2. 搜索寄存器配置
   → search_parsed(query="PWM timer register")

3. AI 根据手册生成代码
   → 生成符合规范的 C 代码
```

### API 文档查询

```
1. 解析 API 文档
   → parse_documents(files=["./api_docs"], pattern="*.pdf")

2. 搜索接口说明
   → search_parsed(query="authentication, API key")

3. AI 生成调用代码
```

## 配置

配置文件位置：`~/.hwdocs/config.json`

```json
{
  "api_token": "your_token_here",
  "api_base": "https://api.hwdocs.dev"
}
```

## 依赖

- Python 3.10+
- semtools CLI (`npm install -g @llamaindex/semtools`)
- MCP 兼容的 AI 编辑器（Cursor、Claude Desktop 等）

## 开发

```bash
# 安装开发依赖
pip install -e ".[dev]"

# 运行测试
pytest

# 代码格式化
ruff format
ruff check --fix
```

详细开发文档见 [DEVELOPMENT.md](DEVELOPMENT.md)

## License

MIT