semvec/pypi-packages huggingface dataset:
packetutil 0.1.2
Utility to pack and unpack binary data into commonly used python data types.
License: MIT
Requires Python: >=3.7

# packetutil

**`packetutil`** is a Python utility library for defining and manipulating custom binary packet structures using flexible field definitions. It makes it easy to pack Python dictionaries into bytearrays and unpack bytearrays back into structured data — with support for bitfields, bytearrays, and typed fields.

## Features

- Define binary packet formats with intuitive field objects
- Convert Python dictionaries to binary with `pack()`
- Decode binary into dictionaries with `unpack()`
- Supports:
  - Typed fields (`uint8`, `uint16`, etc.)
  - Fixed-size byte arrays
  - Bitfields with named subfields and bit lengths

## Installation
```bash
pip install packetutil
```

## Usage
Define your packet structure
```python
from packetutil import PacketFormatter, TypeField, BytearrayField, BitField

fields = {
    'type_f': TypeField('uint16', big_endian=False),
    'byte_f': BytearrayField(4),
    'bit_f': BitField('uint16', {
        'field1': 3,
        'field2': 6,
        'field3': 7
    })
}
formatter = PacketFormatter(fields)
```

Pack data into a bytearray
```python
data = {
    'type_f': 1,
    'byte_f': bytearray(4 * [0]),
    'bit_f': {
        'field1': 7,
        'field2': 20,
        'field3': 30
    }
}

packed = formatter.pack(data)
print(packed)
# Output:
# bytearray([0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEA, 0x1E])
```

Unpack a bytearray into structured data
```python
parsed = formatter.unpack(bytearray([0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0xEA, 0x1E]))
print(parsed)
# Output:
# {
#     'type_f': 1,
#     'byte_f': bytearray([0, 0, 0, 0]),
#     'bit_f': {
#         'field1': 7,
#         'field2': 20,
#         'field3': 30
#     }
# }
```
idiom-search 1.0.11
成语检索工具
License: MIT
Requires Python: >=3.6.0
Keywords: China, idiom, 成语, 成语检索


检索语句中是否有成语（Python 版）
=============================

   
用于检索语句中是否有成语。

## 关于

* Gitee: <https://gitee.com/cnhsqk/idiom_search>  
* PyPI: <https://pypi.org/project/idiom_search/> 
* Python version: >= 3.6.0
* License: MIT license  

## 安装

    $ pip install idiom-search

## 升级

    $ pip install -U idiom-search
     

## 依赖库

    pypinyin>=0.55.0

## 使用示例

首先导入库 
```
import idiom_search as idiom
``` 

### 检索一句话中是否包含成语。 
```
idiom.search_idiom('他一欣一意地完成工作，结果却画蛇添足了。')
>>> True
```

#### 功能说明：
``` 
search_idiom(sentence, fuzzy_threshold = 0.8)
    :param sentence: str,一句话
    :param fuzzy_threshold: int, 模糊匹配阈值，默认为：0.8。 值越高要求越精确。
    :return: list 按匹配有限度排列。匹配度越高的在数组中排行越靠前
```

实用式例：    

```
idiom.search_idiom(word='他一欣一意地完成工作，结果却画蛇添足了。')
>>> ['一心一意', '画蛇添足', '一心一力', '一心一计']
```

## 资源文件

* 源数据来源：https://github.com/pwxcoo/chinese-xinhua。  


## Lincese

    MIT License
    
    Copyright (c) 2025 tangwei-dev
uvxt 0.1.6
The best tools for developers using uv
License: MIT
Requires Python: >=3.12
Keywords: rocshers, uvxt, uv, pypi

# uvxt - uv tools collection

A collection of tools that, in conjunction with the capabilities of the uv, will increase your productivity

[![PyPI](https://img.shields.io/pypi/v/uvxt)](https://pypi.org/project/uvxt/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/uvxt)](https://pypi.org/project/uvxt/)
[![uvxt](https://img.shields.io/badge/family-uvxt-purple)](https://pypi.org/project/uvxt/)

[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=rocshers_uvxt&metric=coverage)](https://sonarcloud.io/summary/new_code?id=rocshers_uvxt)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=rocshers_uvxt&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=rocshers_uvxt)

[![Downloads](https://static.pepy.tech/badge/uvxt)](https://pepy.tech/project/uvxt)
[![GitLab stars](https://img.shields.io/gitlab/stars/rocshers/python/uvxt)](https://gitlab.com/rocshers/python/uvxt)
[![GitLab last commit](https://img.shields.io/gitlab/last-commit/rocshers/python/uvxt)](https://gitlab.com/rocshers/python/uvxt)

## Quick start

```bash
uv tool install uvxt
uvxt audit
```

or

```bash
uvx uvxt audit
```

## Commands

- `uvxt go` - Launch the [uv-go](https://pypi.org/project/uv-go/)
- `uvxt up` - Launch the [uv-up](https://pypi.org/project/uv-up/)
- `uvxt audit` - Launch the [uv-audit](https://pypi.org/project/uv-audit/)
- `uvxt stats` - Launch the [uv-stats](https://pypi.org/project/uv-stats/)
- `uvxt version` - Launch the [uv-version](https://pypi.org/project/uv-version/)

## Contribute

Issue Tracker: <https://gitlab.com/rocshers/python/uvxt/-/issues>  
Source Code: <https://gitlab.com/rocshers/python/uvxt>

### How to add a new tool?

1) Create your CLI application.
   - We strongly recommend using `typer` for easy integration into uvxt.
   - Make sure that your package dependencies do not conflict with those already described in uvxt.
2) Upload your module to PyPI.
3) Add this package as a dependency to uvxt via `uv add`.
4) Import your CLI application in [uvxt/cli.py](./uvxt/cli.py)
5) Check that everything works fine.
6) Make a PR.

### Development Commands

Before adding changes:

```bash
make install
```

After changes:

```bash
make format test
```
uv-go 0.1.3
An easy way to launch programs with functional bonuses
License: MIT
Requires Python: >=3.9
Keywords: uvxt, uv

# uv GO tool

An easy way to launch programs with functional bonuses

[![PyPI](https://img.shields.io/pypi/v/uv-go)](https://pypi.org/project/uv-go/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/uv-go)](https://pypi.org/project/uv-go/)
[![uvxt](https://img.shields.io/badge/family-uvxt-purple)](https://pypi.org/project/uvxt/)

[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=rocshers_uv-go&metric=coverage)](https://sonarcloud.io/summary/new_code?id=rocshers_uv-go)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=rocshers_uv-go&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=rocshers_uv-go)

[![Downloads](https://static.pepy.tech/badge/uv-go)](https://pepy.tech/project/uv-go)
[![GitLab stars](https://img.shields.io/gitlab/stars/rocshers/python/uv-go)](https://gitlab.com/rocshers/python/uv-go)
[![GitLab last commit](https://img.shields.io/gitlab/last-commit/rocshers/python/uv-go)](https://gitlab.com/rocshers/python/uv-go)

## Quick start

```bash
uvx uv-go module.file:function_main.function_property

# Or using uvxt
uv tool install uvxt
uvxt go module.file:function_main.function_property
```

## Contribute

Issue Tracker: <https://gitlab.com/rocshers/python/uv-go/-/issues>  
Source Code: <https://gitlab.com/rocshers/python/uv-go>

Before adding changes:

```bash
make install
```

After changes:

```bash
make format test
```