semvec/pypi-packages huggingface dataset:
pytrunc 1.0.1
Scattering phase matrix truncation Python tool for radiative transfer applications.
Requires Python: >=3.11

# pytrunc

[![image](https://img.shields.io/pypi/v/pytrunc.svg)](https://pypi.python.org/pypi/pytrunc)
[![image](https://img.shields.io/github/v/tag/hygeos/pytrunc?label=github&color=blue)](https://github.com/hygeos/pytrunc)


Scattering phase matrix truncation Python tool for radiative transfer applications.


Mustapha Moulana  
[HYGEOS website](https://hygeos.com/en/)  
[Documentation](https://hygeos.github.io/pytrunc/)


-----------------------------------------------

## Installation

For an installation via pip, you can use the following command:

```bash
pip install git+https://github.com/hygeos/pytrunc.git
```

## Examples

Example using the Delta-m method:

<details>
<summary>Voir l'image</summary>

```python
>>> ...
>>> from pytrunc.truncation import delta_m_phase_approx
>>> m_max = 20 # stream / term number
>>> # phase_exact -> P11 of a liquid cloud at 500nm and an effective radius of 8 mirometers
>>> # theta -> the phase angles in degrees
>>> ds = delta_m_phase_approx(phase_exact, theta, m_max) # return an xarray dataset
>>> ...
```

<img src="pytrunc/img/truncated_phase_dm.png" width="800">

</details>

Example using the Geometric Truncation:

<details>
<summary>Voir l'image</summary>

```python
>>> ...
>>> from pytrunc.truncation import gt_phase_approx
>>> from pytrunc.phase import calc_moments
>>> m_max = 20 # stream / term number
>>> # phase_exact -> P11 of a liquid cloud at 500nm and an effective radius of 8 mirometers
>>> # theta -> the phase angles in degrees
>>> chi = calc_moments(phase_exact, theta, m_max=m_max, normalize=True) # the phase moments
>>> f = chi[m_max] # The truncation factor
>>> ds = gt_phase_approx(phase_exact, theta, f) # return an xarray dataset
>>> ...
```

<img src="pytrunc/img/truncated_phase_gt.png" width="800">

</details>
genplanner 0.1.4
GenPlanner python+rust library
Requires Python: <3.13,>=3.11

# GenPlanner

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

### Постановка задачи
<img src="https://github.com/user-attachments/assets/7b85778d-922f-435a-807d-00d429568b58" alt="shlis_init" width="500">

### Полученное зонирование
<img src="https://github.com/user-attachments/assets/2ac71257-8792-49fa-a464-e22fbaf901dd" alt="shlis_zonning" width="500">

### Принцип работы метода 

<img src="https://github.com/user-attachments/assets/dbeeb11a-e04f-43a7-b0ad-ff32f3899022" alt="collage" width="500">
vibe-loggerpy 0.1.0
A goated logging utility with auto-error catching and color support
Requires Python: >=3.7

# Vibe-Logger

Vibe-Logger is a lightweight Python logging utility designed for developers who require organized console output, persistent file logging, and automated exception handling with minimal configuration.

## Features
- **ANSI Color Support:** Integrated color-coded levels via Colorama for enhanced readability.
- **Automated Log Cleaning:** Uses regex to strip ANSI escape sequences before writing to files, ensuring clean log data.
- **Exception Decorator:** Includes a `@catch` decorator to automatically log function failures with full error context.
- **Command Callbacks:** Supports functional hooks that trigger specific actions (oncommand) when a log level is reached.
- **Configurable Levels:** Supports standard logging levels (INFO, WARN, CRITICAL) to filter output.
amsdal_crm 0.3.1
amsdal-crm plugin for AMSDAL Framework
Requires Python: >=3.11

# amsdal-crm

This plugin provides custom models, properties, transactions, and hooks for the AMSDAL Framework.

## Plugin Structure

- `src/models/` - Contains model definitions in Python format
- `src/transactions/` - Contains transaction definitions
- `pyproject.toml` - Plugin configuration file
- `config.yml` - Configuration for connections

## Installing this Plugin

To use this plugin in an AMSDAL application:

1. Copy the plugin directory to your AMSDAL application
2. Import the models and transactions as needed
3. Register the plugin in your application configuration

## Development

This plugin uses sync mode.

### Adding Models

```bash
amsdal generate model ModelName --format py
```

### Adding Properties

```bash
amsdal generate property --model ModelName property_name
```

### Adding Transactions

```bash
amsdal generate transaction TransactionName
```

### Adding Hooks

```bash
amsdal generate hook --model ModelName on_create
```

## Testing

Test your plugin by integrating it with an AMSDAL application and running the application's test suite.
iflow-mcp_spyoungtech-ahk-mcp 0.1.0
Model Context Protocol for Windows automation using AutoHotkey
Requires Python: >=3.11

# ahk-mcp

MCP server exposing AutoHotkey functionality, enabling model interfaces to automation tasks on Windows.

This server only works on Windows and provides the following tools to your AI:

- Ability to enumerate windows/applications
- Ability to control keyboard/mouse (typing, clicking, etc)
- Ability to interrogate Windows APIs (via AutoHotkey) about windows (e.g., to get the text of a window, the position of its GUI controls, etc.)
- Screen capture & OCR functionality (useful when text is not exposed properly by Windows APIs/controls)
- Ability to get accurate window positioning and contextual information about computer monitors (e.g., know what windows are on your primary/secondary monitors)
- Ability to manipulate windows and other actions via AutoHotkey

In total, there are 33 tools currently exposed by the server, the above is just a simple overview. 
While we work on documentation, exploring the source code in `main.py` is encouraged!

## Usage

This project makes use of the [Python MCP SDK](https://github.com/modelcontextprotocol/python-sdk) with FastMCP. Please 
see the Python MCP SDK repo and documentation for detailed information.

Assuming you've already setup `mcp` CLI, you can install this MCP service in Claude Desktop with a simple `mcp` command:

```bash
mcp install main.py
```

This project depends on `ahk-binary` to provide the required AutoHotkey executables and the [`ahk`](https://github.com/spyoungtech/ahk) 
project to interface with AutoHotkey. It uses `mss`, [`easyocr`](https://github.com/JaidedAI/EasyOCR?tab=readme-ov-file#installation), and `numpy` 
for OCR functionality.

## Contributing

The best way to contribute is right here on GitHub. Please feel free to [open an issue](https://github.com/spyoungtech/ahk-mcp/issues) 
to get started. Pull requests are also welcome, but it is strongly recommended to open an issue first, especially for 
significant changes.
xiaozhi-sdk 0.4.10
一个用于连接和控制小智智能设备的Python SDK，支持实时音频通信、MCP工具集成和设备管理功能。
Requires Python: >=3.9

# 小智SDK ｜ 一句话命令

[![Python Version](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![PyPI](https://img.shields.io/badge/pypi-xiaozhi--sdk-blue.svg)](https://pypi.org/project/xiaozhi-sdk/)

基于虾哥的 [小智esp32 websocket 通讯协议](https://github.com/78/xiaozhi-esp32/blob/main/docs/websocket.md) 实现的 Python SDK。

一个用于连接和控制小智设备的 Python SDK。支持以下功能：
- 实时音频通信
- MCP 工具集成
- 设备管理与控制
- 跨平台支持（Windows、macOS、Linux、树莓派，支持 x64 和 ARM64 架构）

---

## 📦 安装

```bash
pip install uv
uv pip install xiaozhi-sdk -U
```

---

## 🚀 快速开始

### 1. 终端使用

最简单的方式是通过终端直接连接设备：

#### 查看帮助信息

```bash
xiaozhi --help
```

#### 连接设备

```bash
# 默认本机 mac 地址
xiaozhi

# 指定 mac 地址
xiaozhi 00:22:44:66:88:00

# 更多常用操作
## --url 指定服务端 websocket 地址
## --wake_word 指定唤醒词
xiaozhi 00:22:44:66:88:00 \
  --url ws://127.0.0.1:8180 \
  --wake_word "你好啊"
```

### 2. 编程使用 (高阶用法)
参考 [examples](examples/) 文件中的示例代码，可以快速开始使用 SDK。


---

## ✅ 运行测试

```bash
# 安装开发依赖
uv sync --group dev

# 运行测试
uv run pytest
```


---

## 🫡 致敬

- 🫡 虾哥的 [xiaozhi-esp32](https://github.com/78/xiaozhi-esp32) 项目
django-modelforms 1.0.1
Improvements to django.forms.ModelForm - validates unique_together and UniqueConstraint
Requires Python: >=3.10

# django-modelforms

[![CI](https://github.com/goodtune/django-modelforms/actions/workflows/ci.yml/badge.svg)](https://github.com/goodtune/django-modelforms/actions/workflows/ci.yml)

This project came about because our reusable administration has to deal with
related models that have `unique_together` constraints (and modern `UniqueConstraint`)
that were not being properly validated by the default implementation.

It occurs because our forms don't show the related field, it's not something we
want the user to be able to edit. This has the nasty side-effect of excluding
the related field from validation checks, so uniqueness (with respect to the
related field) is not tested.

The form therefore validates, and a database update is attempted - only to fail
when integrity constraints are enforced by the backend.

## Installation

```bash
pip install django-modelforms
```

Or with uv:

```bash
uv add django-modelforms
```

## Usage

Simply use `modelforms.forms.ModelForm` instead of `django.forms.ModelForm`:

```python
from modelforms.forms import ModelForm

class BookForm(ModelForm):
    class Meta:
        model = Book
        fields = ['title', 'rrp']
```

This will properly validate both legacy `unique_together` constraints and modern
`UniqueConstraint` definitions in your model's `Meta.constraints`.

## Supported Django and Python Versions

- Django 4.2, 5.2, 6.0
- Python 3.10, 3.11, 3.12, 3.13

## Why?

Django bug [#13091](https://code.djangoproject.com/ticket/13091) was filed in
March 2010 and still has not been fixed.

There has been discussion on the mailing lists and a number of patches
proposed, but none have been accepted.

To stop encountering this in our projects we decided to write something generic
that can easily be used without having to wait for an upstream fix.

## Development

This project uses `uv` and `tox` for development:

```bash
# Install development dependencies
uv sync

# Run tests
uv run tox

# Run tests for a specific environment
uv run tox -e py312-django52

# Run linting
uv run tox -e lint
```

## License

BSD-3-Clause