semvec/pypi-packages huggingface dataset:
pkulaw-mcp-law-search 0.1.1
PKULAW MCP server for law search
Requires Python: >=3.10
Keywords: MCP server, PKULAW, law, legal, search

# PKULAW MCP server for law search

A MCP server for law search presented by [PKULAW](https://www.pkulaw.com/).


## Functions

This MCP server provides functions to search law and regulations powered by [PKULAW](https://www.pkulaw.com/). This search is semantic search, leveraging embeddings.


## Use in MCP client

Use following conf to add to local MCP client:

```json
{
  "mcpServers": {
    "pkulaw-mcp-law-search": {
      "command": "uvx",
      "args": ["pkulaw-mcp-law-search"],
      "env": {
        "PKULAW_API_KEY": "your_pkulaw_api_key"
      }
    }
  }
}
```

For API key, please contact: <fxtj@chinalawinfo.com>.

In LLM chat, first enable this MCP server, and input like followings：
- 法律中关于危险货物的定义是什么？
- 请给出以下法规的内容：危险货物道路运输安全管理办法。

If the MCP client fail to invoke, you may need to explictly enable tool calling, like:
- 请使用工具回答，法律中关于危险货物的定义是什么？
html2ft 1.2
Command line tool to convert HTML to FastHTML FT components
Requires Python: >=3.10
Keywords: fasthtml

## HTML2FT - Command line tool to convert HTML to FastHTML Python FT components
[![PyPi](https://img.shields.io/pypi/v/html2ft)](https://pypi.org/project/html2ft/)

[`html2ft`][html2ft] is a command line tool to convert [HTML][html] to
[FastHTML][fasthtml] Python [FT components][fasthtml_comp]. It is a command line
implementation of the online [HTML to FastHTML](https://h2f.answer.ai/) converter.

The latest documentation and code is available at https://github.com/bulletmark/html2ft.

## Usage

Type `html2ft -h` to view the usage summary:

```
usage: html2ft [-h] [-a] [infile]

Command line tool to convert HTML to FastHTML Python FT components. Output is
written to stdout.

positional arguments:
  infile             input file (default is stdin)

options:
  -h, --help         show this help message and exit
  -a, --attrs-first  output attributes first instead of children first
```

## Installation and Upgrade

Python 3.10 or later is required. You can run [`htmt2ft`][html2ft] most easily
using [`uvx`][uvx]. Just make sure [`uv`][uv] is installed and then run the
following command which will install [`html2ft` from PyPi][html2ft_py] "on the fly" and will
then run it immediately:

```sh
$ uvx html2ft [myfile.html]
```

Or install [`html2ft`][html2ft] formally on your system using using [`uv
tool`][uvtool] (or [`pipx`][pipx] or [`pipxu`][pipxu]). To install:

```sh
$ uv tool install html2ft
```

To upgrade:

```sh
$ uv tool upgrade html2ft
```

To uninstall:

```sh
$ uv tool uninstall html2ft
```

## License

Copyright (C) 2025 Mark Blakeney. This program is distributed under the
terms of the GNU General Public License. This program is free software:
you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation,
either version 3 of the License, or any later version. This program is
distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License at
<http://www.gnu.org/licenses/> for more details.

[html]: https://en.wikipedia.org/wiki/HTML
[html2ft]: https://github.com/bulletmark/html2ft
[html2ft_py]: https://pypi.org/project/html2ft
[fasthtml]: https://fastht.ml/
[fasthtml_comp]: https://www.fastht.ml/docs/explains/explaining_xt_components.html
[pipx]: https://github.com/pypa/pipx
[pipxu]: https://github.com/bulletmark/pipxu
[uv]: https://docs.astral.sh/uv/
[uvtool]: https://docs.astral.sh/uv/guides/tools/#using-tools
[uvx]: https://docs.astral.sh/uv/guides/tools/#using-tools

<!-- vim: se ai syn=markdown: -->
chippymu 0.4.0
一个用numpy实现的8bit音乐生成器
Requires Python: >=3.13

from numpy import ndarray

## 一个用numpy实现的8bit音乐生成器

### 功能特性

- MIDI 音符映射：通过枚举类将 MIDI 缺陷值与音名绑定。
- 多种波形支持：包括正弦波、方波、三角波、锯齿波和白噪声。
- 基本鼓组支持：Kick、Snare、Hi-hat 等常见打击乐器模拟。
- 通道生成器：支持旋律和鼓声分别生成独立通道。
- 后处理与播放：混音、音量控制、裁剪与播放功能。
- ️参数配置系统：灵活定义采样率、BPM 和时长等音频参数。

### 安装方式

```bash
pip install chippymu
```


### 示例用法

#### 播放一段旋律

```python
from chippymu.models import Note, WaveType, Melody
from chippymu.configs import BasicParams
from chippymu.channelgen import generate_wave
from chippymu.sound import post_processing, play

from numpy import ndarray

params = BasicParams(sample_rate=16000, bpm=90, length=4)

melody = Melody()
basic_melody: list[tuple[float, Note, float]] = [(0.0, Note.C1, 1.0), (2.0, Note.E1, 1.0), (3.0, Note.G1, 1.0)]
melody.apm(basic_melody, 0.0)

wave: ndarray = generate_wave(melody=melody, wave_type=WaveType.SINE, params=params)

channels: list[ndarray] = [wave,]
volumes: list[float] = [0.8,]
mixed: ndarray = post_processing(channels=channels, volumes=volumes, params=params)

play(data=mixed, params=params)
```

#### 播放一段鼓点

```python
from chippymu.models import DrumType
from chippymu.configs import BasicParams
from chippymu.channelgen import generate_drums
from chippymu.sound import post_processing, play

from numpy import ndarray

params = BasicParams(sample_rate=16000, bpm=90, length=4)

drums: list[tuple[float, DrumType, float]] = [(0.0, DrumType.KICK, 0.1), (1.0, DrumType.HIHAT, 0.2), (2.0, DrumType.SNARE, 0.2)]
drum_audio: ndarray = generate_drums(drums=drums, params=params)

channels: list[ndarray] = [drum_audio,]
volumes: list[float] = [0.8,]

mixed = post_processing(channels=channels, volumes=volumes)
play(data=mixed, params=params)
```

### 核心模块说明

1. `models` 模块：定义了 MIDI 音符映射、波形类型和鼓点类型。

    - WaveType：波形类型，包括 `SINE`、`SQUARE`、`SAWTOOTH` 和 `TRIANGLE`。
    - DrumType：鼓点类型，包括 `KICK`、`HIHAT`、`SNARE` 和 `PERC`。
    - Note：音符对象，包含音符的起始时间、持续时间、音高和音量等信息。

2. `configs` 模块：定义了参数配置，包括采样率、每分钟节拍数、总时长。

    - sample_rate：采样率，默认为 16000 Hz。
    - bpm：每分钟节拍数，默认为 90。
    - length：总时长(以拍数为单位)。

3. `utils` 模块：工具函数集合。

    - `note_to_freq`：将音符对象转换为频率。
    - `basic_wave_gen`：生成基本波形。
    - `basic_drum_gen`：生成基本鼓声。

4. `channelgen`模块：通道生成器。

    - `generate_wave`： 生成波形通道。
    - `generate_drum`： 生成鼓声通道。

5. `sound`模块：后处理与播放。

    - `post_processing`: 混音、裁剪、量化等。
    - `play`: 使用`sounddevice`播放音频。

### 更新记录

#### 0.3.0

- 将noice从波形移动至鼓声，保持一致的创建方式。
- 更新README.md以符合类型标注。

#### 0.3.1

- 修复了音符与midi音符的映射错误。

#### 0.3.2

- 修改了混音基准长度的计算方法。
- 将sound模块的函数改为不能传位置参数

#### 0.4.0

- 增加了Melody类，用于按开始位置拼接短音片段。
pgos-cli-python-sdk-v1 0.2.16.168
PGOS commandline interface
Requires Python: >=3.8

# PGOS CLI Python SDK V1

## Intro

PGOS CLI Python SDK.

Requires Python3.8 or higher versions.

## Installing

Install with pip:

    python -m pip install --upgrade pgos-cli-python-sdk-v1

## Usage

### Examples for JSON params

Refer to *./tests/json_params_demo/*.json*

### Examples for SDK usage

Refer to *./tests/test.py*