semvec/pypi-packages huggingface dataset:
deltadir 0.1.0
Compare directories. Source (src) never modified, dst can be updated with -s/--sync
License: MIT
Requires Python: >=3.10

# DeltaDir

Compare directories using various methods and optionally synchronize them.

## Examples
### Create test environment
~~~bash
# prepare two identical directories
mkdir -p /tmp/src/subdir
echo x > /tmp/src/test.txt
echo x > /tmp/src/subdir/test.txt
cp -a /tmp/src /tmp/dst
~~~

### Find missing (new) files
The default mode is `exists`: a file is considered different if it is completely missing in the destination directory (dst/).

~~~bash
# create new file in src
echo new > /tmp/src/new.txt

# new file is found
deltadir /tmp/src/ /tmp/dst/
new.txt

# Let's synchronize it using -s or --sync! (no overwrite by default)
deltadir /tmp/src/ /tmp/dst/ --sync
new.txt
~~~


### Find modified files

you can use `-m`/`--method` (exists, mtime, size, hash) for more accurate checking

~~~bash
# create new file in src
echo new content > /tmp/src/new.txt

# find nothing
deltadir /tmp/src/ /tmp/dst/

# use hash (slowest, but most reliable) and detect it
deltadir /tmp/src/ /tmp/dst/ -m hash
new.txt

# sync with overwrite
deltadir /tmp/src/ /tmp/dst/ -m hash -s --overwrite
new.txt
~~~

### Always recursive
deltadir always work recursively.

~~~bash
echo new > /tmp/src/subdir/newfile.txt

deltadir /tmp/src/ /tmp/dst/ 
subdir/newfile.txt
~~~

### See result as table
Add `-t`/`--table` to see results as table:
~~~
deltadir /tmp/src/ /tmp/dst/  -t
File                                     | Reason          | Src                  | Dst                  | Action              
-----------------------------------------------------------------------------------------------------------------------------
subdir/newfile.txt                       | missing         | -                    | -                    | nothing(reported)   
~~~
vcmp-python-plugin 2.1.2
Python for VC:MP Server Plugin
License: MIT
Requires Python: >=3.10

<div align="center">

# Python for VC:MP Server Plugin

![GitHub Issues or Pull Requests](https://img.shields.io/github/issues-pr/tianxiu2b2t/vcmp-python-plugin)
![GitHub Issues or Pull Requests](https://img.shields.io/github/issues/tianxiu2b2t/vcmp-python-plugin)
![GitHub License](https://img.shields.io/github/license/tianxiu2b2t/vcmp-python-plugin)
![GitHub Release](https://img.shields.io/github/v/release/tianxiu2b2t/vcmp-python-plugin)
![GitHub Tag](https://img.shields.io/github/v/tag/tianxiu2b2t/vcmp-python-plugin)
![GitHub Repo stars](https://img.shields.io/github/stars/tianxiu2b2t/vcmp-python-plugin)
<!-- [![Build](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/build.yml/badge.svg)](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/build.yml)
[![Docker Build](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/docker_build.yml/badge.svg)](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/docker_build.yml)
[![Release](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/release.yml/badge.svg)](https://github.com/TTB-Network/python-openbmclapi/actions/workflows/release.yml) -->
[赞助](https://afdian.net/a/atianxiua)
</div>

## 许可证

[MIT](LICENSE)

## 贡献

如果你有能力，你可以向我们的仓库提交 Pull Request 或 Issue。

### 开发进度

目前 `master` 是主分支, ~~`rwir` 分支上正在将进行 rust 重写的工作~~, 在修一些小问题，欢迎贡献

> lets RWIR!


## TODO
- [ ] 实现 NPC 插件（habi）的 bindings
- [ ] 实现 Exports 出来的 bindings

## 鸣谢

[ysc3839](https://github.com/ysc3839/vcmp-python-plugin) 提供一些 Python 开发思路
[shenjack](https://github.com/shenjackyuanjie/icalingua-bridge-bot) 帮助解决一些~~很屎的~~代码，并且提供了一些参考代码

## 使用

### 如果你是 Linux 用户 (Docker)

```bash
docker run -d --name vcmp-python -v /path/to/your/server:/app -p 8192:8192 tianxiu2b2t/vcmp-python server
```

### 如果你是 Windows 用户

1. pip 包安装
```bash
pip install vcmp-python-plugin
```

2. 下载对应的 python 版本 dll 文件，或在 pip 包中寻找对应的 dll 文件
3. 将 dll 文件放入你的 VCMP 服务器 plugins 文件夹中
4. 修改 server.cfg 文件，添加以下内容

```cfg
plugins python04rel64rspyo3py<python version>.dll
# 非必要不要开启……
# python_preloader false
python_script_path main.py
# 虚拟环境，比如 .venv/lib/python3.8/site-packages
# python_virtual_env 
# 日志等级，默认 INFO
# python_log_level INFO
# 检查更新，默认为 true
# python check_update true
# 是否记录日志，默认为 false
# python_file_log
# 重载脚本的时候，忽略已加载的模块，默认为 
# 例子： _bcrypt,_signal
# python_ignore_py_modules
```
or python_cfg.toml

```toml
[script]
script_path = "main.py"
virtual_env = ".venv/lib/python3.8/site-packages"
# 默认为 false
# preloader = false
[logger] # 可选
log_level = "INFO"
file_log = false

[advanced] # 可选
check_update = true
ignore_py_modules = [
    "_bcrypt",
    "_signal"
]
```

5. 启动你的服务器
```bash
server.exe
```

## 示例脚本 ~~（等有缘人提供）~~
main.py:
```python

```

## Build

1. 安装 Python 和 rustc & cargo 依赖
2. 进入目录
```bash
cargo build --release
```

> 如果你怕更新的时候复制插件到 `plugins` 里的话，可以访问此项目

> [vcmp-python-plugin-link](https://github.com/tianxiu2b2t/vcmp-python-plugin-link/releases) 页面下载最新的插件
django-mailupy 0.1.0
Django app wrapping the MailUp Python client
License: MIT
Requires Python: >=3.8

# django-mailupy

Django wrapper for the Mailupy client.

## Overview

`django-mailupy` is a Django app that wraps the [Mailupy](https://pypi.org/project/mailupy/) Python client, providing seamless integration with Django projects. It stores MailUp credentials in the database in a single instance and exposes API endpoints for credential management.

## Features

- Stores MailUp credentials securely in the database
- Provides Django REST Framework viewsets and serializers for credential management
- Exposes MailUp client methods via Django

## Requirements

- Python >= 3.9
- Django >= 4.2
- mailupy >= 1.1.4
- (Optional) djangorestframework >= 3.12 for API features

## Installation

```bash
pip install django-mailupy
```

Or add to your `pyproject.toml` dependencies:

```toml
django-mailupy = ">=0.1.0"
```

## Setup

1. Add `django_mailupy` to your `INSTALLED_APPS` in `settings.py`:

    ```python
    INSTALLED_APPS = [
        # ...existing apps...
        'django_mailupy',
    ]
    ```

2. Run migrations to create the credentials table:

    ```bash
    python manage.py migrate
    ```

3. (Optional) Add the API URLs to your project:

    ```python
    # in your urls.py
    path('mailupy/', include('django_mailupy.urls')),
    ```

## Usage

- Store your MailUp credentials using the admin or API.
- Initialize the `DjangoMailupy` client in your code:

    ```python
    from django_mailupy.client import DjangoMailupy

    client = DjangoMailupy(client_id="your_client_id", client_secret="your_client_secret")
    ```

- Django Mailupy stores only one set of credentials and only username and password to ensure security, since client ID and secret can be hardcoded or managed via environment variables and do not change often.

## Example

- The library contains a simple example app that demonstrates how to use the client and API. You can run it with:

    ```bash
    python manage.py runserver
    ```

inside the `example` directory.

## Project Structure

```
django-mailupy
├─ LICENSE
├─ README.md
├─ example
│  ├─ config
│  │  ├─ __init__.py
│  │  ├─ settings.py
│  │  ├─ urls.py
│  │  ├─ views.py
│  │  └─ wsgi.py
│  └─ manage.py
├─ pyproject.toml
└─ src
   └─ django_mailupy
      ├─ __init__.py
      ├─ admin.py
      ├─ apps.py
      ├─ client.py
      ├─ migrations
      │  ├─ 0001_initial.py
      │  └─ __init__.py
      ├─ models.py
      ├─ serializers.py
      ├─ urls.py
      └─ viewsets.py

```

## License

MIT License. See [LICENSE](LICENSE) for details.
watchfs 0.2.0
Watch and sync files to another directory
License: MIT
Requires Python: >=3.12
Keywords: watch, sync

# WatchFS

Watch and sync files to another directory.

<p align="center">
   <a href="https://python.org/" target="_blank"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/watchfs?logo=python&style=flat-square"></a>
   <a href="https://pypi.org/project/watchfs/" target="_blank"><img src="https://img.shields.io/pypi/v/watchfs?style=flat-square" alt="pypi"></a>
   <a href="https://pypi.org/project/watchfs/" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/watchfs?style=flat-square"></a>
   <a href="LICENSE"><img alt="LICENSE" src="https://img.shields.io/github/license/ShigureLab/watchfs?style=flat-square"></a>
   <br/>
   <a href="https://github.com/astral-sh/uv"><img alt="uv" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json&style=flat-square"></a>
   <a href="https://github.com/astral-sh/ruff"><img alt="ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json&style=flat-square"></a>
   <a href="https://gitmoji.dev"><img alt="Gitmoji" src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square"></a>
</p>

## Installation

```python
uv tool install watchfs
```

## Usage

```python
watchfs src1:dst1 src2:dst2
```
numline-c 0.0.0
Pure NumPy machine-learning toolkit (name reservation)
License: MIT
Requires Python: >=3.8

```markdown
# Numline_c

*Pure NumPy Machine Learning – coming soon.*

---

🚧 **This is a placeholder release**  
The package currently reserves the name on PyPI. Real code will land in `v0.1.0`.

Stay tuned for a lightweight, dependency-free ML toolkit built entirely on.

---

### Installation (placeholder)

```bash
pip install numline_c
```

License

MIT © liujunyi

```
audit-log-client 1.4.14
Python client for audit logging services
License: MIT
Requires Python: >=3.7
Keywords: audit, logging, security, monitoring




# 审计日志客户端

用于审计日志服务的Python客户端，支持同步和异步两种使用模式。

## 主要功能

- **双模式支持**：同步和异步API
- **缓冲处理**：可配置的内存缓冲区
- **重试机制**：指数退避重试策略
- **降级策略**：失败时自动写入本地文件
- **查询支持**：灵活的日志查询功能

## 安装

```bash
pip install audit-log-client
```

## 快速入门

### 同步客户端

```python
from audit_log_client import SyncAuditLogClient, AuditLog, AuditAction, AuditTarget

# 初始化客户端
client = SyncAuditLogClient(
    base_url="http://audit.service/api",
    app_id="your-app-id",  # 应用ID
    secret_key="your-secret-key"  # 应用密钥
)

# 创建审计日志
log = AuditLog(
    action=AuditAction.UPDATE,
    target_type=AuditTarget.USER,
    user_id="admin",
    description="用户资料更新",
    before={"name": "张三"},
    after={"name": "张三丰"}
)

# 记录日志
client.log(log)

# 关闭客户端
client.close()
```

### 异步客户端

```python
import asyncio
from audit_log_client import AsyncAuditLogClient, AuditLog, AuditAction, AuditTarget

async def main():
    # 初始化客户端
    client = AsyncAuditLogClient(
        base_url="http://audit.service/api",
        app_id="your-app-id",  # 应用ID
        secret_key="your-secret-key"  # 应用密钥
    )
    
    # 创建审计日志
    log = AuditLog(
        action=AuditAction.CREATE,
        target_type=AuditTarget.ORDER,
        user_id="sales",
        description="新建订单"
    )
    
    # 记录日志
    await client.log(log)
    
    # 关闭客户端
    await client.shutdown()

asyncio.run(main())
```

## 认证方式

新版本已升级认证机制，使用应用ID和应用密钥进行身份验证：

1. 在请求头中添加：
   - `X-App-ID`: 您的应用ID
   - `X-Secret-Key`: 您的应用密钥

2. 初始化客户端时提供：
   ```python
   client = SyncAuditLogClient(
       base_url="...",
       app_id="your-app-id",
       secret_key="your-secret-key"
   )
   ```

## 查询示例

```python
from datetime import datetime, timedelta

# 查询最近1小时的用户更新日志
end_time = datetime.now()
start_time = end_time - timedelta(hours=1)

logs = client.query_logs(
    action="UPDATE",
    target_type="USER",
    user_id="admin",
    start_time=start_time,
    end_time=end_time
)

for log in logs:
    print(f"{log.timestamp}: {log.description}")
```

## 主要更新内容：

1. 将文档语言切换为中文
2. 更新了认证方式的说明，强调使用AppID和SecretKey
3. 修改了示例代码中的描述文本为中文
4. 添加了专门的认证方式说明章节
5. 新增了查询示例
6. 保留了必要的英文术语（如MIT许可证）
7. 更新了初始化客户端的参数说明