semvec/pypi-packages huggingface dataset:
malachi 1.0.3
A Python module for Windows 10 toast notifications
Requires Python: >=3.6

# Malachi - Windows 10 Toast Notifications

## Overview
Malachi is a Python module designed to create Windows 10 toast notifications. It is a customized version of the `win10toast_click` module, which is no longer maintained. This module allows users to display notifications with custom icons, messages, and click callbacks.

## Features
- Display Windows 10 toast notifications.
- Support for custom icons.
- Configurable duration for notifications.
- Threaded notifications to avoid blocking.
- Callback functionality for mouse clicks within the notification window.

## Installation
To install the module, use the following command:

```bash
pip install malachi
```

## Usage
### Basic Notification
```python
from malachi import ToastNotifier

notifier = ToastNotifier()
notifier.show_toast(
    title="Notification Title",
    msg="This is a sample notification message",
    duration=5
)
```

### Notification with Custom Icon
```python
notifier.show_toast(
    title="Custom Icon Notification",
    msg="This notification has a custom icon",
    icon_path="path/to/icon.ico",
    duration=5
)
```

### Threaded Notification
```python
notifier.show_toast(
    title="Threaded Notification",
    msg="This notification runs in a separate thread",
    threaded=True
)
```

### Notification with Click Callback
```python
def on_click():
    print("Notification clicked!")

notifier.show_toast(
    title="Clickable Notification",
    msg="Click me!",
    callback_on_click=on_click
)
```

## API Reference
### `ToastNotifier`
#### `show_toast`
Displays a toast notification.

**Parameters:**
- `title` (str): The title of the notification.
- `msg` (str): The message to display.
- `icon_path` (str, optional): Path to the `.ico` file for the notification icon.
- `duration` (int, optional): Duration in seconds before the notification self-destructs. Set to `None` for no self-destruction.
- `threaded` (bool, optional): Whether to run the notification in a separate thread.
- `callback_on_click` (callable, optional): Function to call when the notification is clicked.

#### `notification_active`
Checks if there is an active notification.

**Returns:**
- `bool`: `True` if a notification is active, `False` otherwise.

## License
This project is licensed under the MIT License.

## Acknowledgments
This module is inspired by the `win10toast_click` module created by [jithurjacob](https://github.com/jithurjacob/Windows-10-Toast-Notifications).
lewis-lazy-logger 0.1.1
A simple reusable logger setup
Requires Python: >=3.8

# Lewis' Lazy Logger
For when you're too lazy to setup loggers every time.

## How to use
* Install the logger package by running `pip install lewis-lazy-logger`
* Import into your logger file like so: `from lewis_lazy_logger import simple_logger_setup`
* You can then initialise your logger and pick which options you want to enable:
```python
logger = simple_logger_setup(
    level="info", (default = "debug")
    name="my_app", (default = None)
    use_rich=True, (default = False)
    log_to_file=True, (default = False)
    file_path="test.log", (default = "app.log")
    json_output=False, (default = False)
    max_bytes=10000, (default = 1000000)
    backup_count=5, (default = 3)
)
```

The available fields are:
* level: str - The log level you want to log (ie debug, info, etc)
* name: str - The name of your logger instance
* use_rich: bool - Make use of the Rich package for 'rich text and beautiful formatting in the terminal' (Overwrites json_output)
* log_to_file: bool - Write your logs to a log file
* file_path: str - The file path for your logs
* json_output: bool - Output logs in json format (Not usable with use_rich = True)
* max_bytes: int - The maximum file size of your log files
* backup_count: int - The number of backup log files allowed to be created

---

## Example Output

### use_rich = False
```log
[13:02:32] [ERROR] my_app: Division by zero!
Traceback (most recent call last):
  File "E:\Projects\LOGGER_TEST\main.py", line 19, in <module>
    1 / 0
    ~~^~~
ZeroDivisionError: division by zero
```

### use_rich = True
```log
[07/05/25 13:00:44] ERROR    Division by zero!                                           main.py:21
                             ╭─────────── Traceback (most recent call last) ───────────╮
                             │ E:\Projects\LOGGER_TEST\main.py:19 in <module>          │
                             │                                                         │
                             │   16 # logger.error("Oops, something went wrong!")      │
                             │   17                                                    │
                             │   18 try:                                               │
                             │ ❱ 19 │   1 / 0                                          │
                             │   20 except ZeroDivisionError:                          │
                             │   21 │   logger.exception("Division by zero!")          │
                             │   22                                                    │
                             ╰─────────────────────────────────────────────────────────╯
                             ZeroDivisionError: division by zero
```

### json_output = True
```log
{"time": "2025-07-05T13:02:59", "level": "ERROR", "logger": "my_app", "message": "Division by zero!", "exception": "Traceback (most recent call last):\n  File \"E:\\Projects\\LOGGER_TEST\\main.py\", line 19, in <module>\n    1 / 0\n    ~~^~~\nZeroDivisionError: division by zero"}
```
deadnews-template-python 2.1.0
Python Project Template
Requires Python: >=3.13
Keywords: layout, python, template

# deadnews-template-python

> Python Project Template

[![PyPI: Version](https://img.shields.io/pypi/v/deadnews-template-python?logo=pypi&logoColor=white)](https://pypi.org/project/deadnews-template-python)
[![GitHub: Release](https://img.shields.io/github/v/release/deadnews/deadnews-template-python?logo=github&logoColor=white)](https://github.com/deadnews/deadnews-template-python/releases/latest)
[![Docker: ghcr](https://img.shields.io/badge/docker-gray.svg?logo=docker&logoColor=white)](https://github.com/deadnews/deadnews-template-python/pkgs/container/deadnews-template-python)
[![Documentation](https://img.shields.io/badge/documentation-gray.svg?logo=materialformkdocs&logoColor=white)](https://deadnews.github.io/deadnews-template-python)
[![CI: pre-commit](https://results.pre-commit.ci/badge/github/DeadNews/deadnews-template-python/main.svg)](https://results.pre-commit.ci/latest/github/deadnews/deadnews-template-python/main)
[![CI: Main](https://img.shields.io/github/actions/workflow/status/deadnews/deadnews-template-python/main.yml?branch=main&logo=github&logoColor=white&label=main)](https://github.com/deadnews/deadnews-template-python/actions/workflows/main.yml)
[![CI: Coverage](https://img.shields.io/codecov/c/github/deadnews/deadnews-template-python?token=OCZDZIYPMC&logo=codecov&logoColor=white)](https://app.codecov.io/gh/deadnews/deadnews-template-python)

## Installation

PyPI

```sh
pip install deadnews-template-python
# or
pipx install deadnews-template-python
```

Docker

```sh
docker pull ghcr.io/deadnews/deadnews-template-python:latest
```
sara-karts 0.1.0
Sara - An AI-powered code generator assistant
Requires Python: >=3.7

# Sara - Your Local AI Code Assistant

*Sara* is a Python package that integrates AI code generation into your Python environment using [Ollama](https://ollama.com) and local models like starcoder.

## ðŸš€ Features

- Runs entirely offline using local LLMs
- Uses [Ollama](https://ollama.com) and [StarCoder](https://huggingface.co/bigcode/starcoder)
- Simple and clean import sara experience

## ðŸ“¦ Installation

(Coming soon on PyPI)

For now, clone the repo and run:
```bash
pip install .

## Requirements

This package depends on [Ollama](https://ollama.com) for code generation.

Please install and run Ollama separately:
- Download from: https://ollama.com/download
- Example model: ollama run starcoder
nostats 0.1.1
A package to learn Statistics
Requires Python: >=3.10
Keywords: Statistics


# 学习统计学

Learning Statistics

## 学习路线

**描述性统计 Descriptive Statistics**
1. 均值、中位数、众数 Mean, Median, Mode
2. 方差、标准差 Variance, Standard Deviation
3. 分位数、箱线图 Quantiles, Boxplot (or Box-and-Whisker Plot)
4. 频率分布表与直方图 Frequency Distribution Table and Histogram

**概率分布 Probability Distributions**
1. 离散分布：二项分布、泊松分布 Discrete Distributions: Binomial Distribution, Poisson Distribution
2. 连续分布：正态分布、t分布、卡方分布 Continuous Distributions: Normal (Gaussian) Distribution, t-Distribution, Chi-Squared Distribution
3. 概率密度函数与累积分布函数 Probability Density Function (PDF) and Cumulative Distribution Function (CDF)

**统计推断 Statistical Inference**
1. 假设检验（t检验、z检验、卡方检验） Hypothesis Testing (t-test, z-test, Chi-Square test)
2. 置信区间 Confidence Interval
3. p值解释 p-value Interpretation

**相关与回归 Correlation and Regression**
1. 皮尔逊相关系数 Pearson Correlation Coefficient
2. 线性回归 Linear Regression
3. 残差分析 Residual Analysis

**高级主题 Advanced Topics**
1. 时间序列分析 Time Series Analysis
2. 非参数检验 Nonparametric Tests
3. 多元统计分析 Multivariate Statistical Analysis

## Deployment

``` sh
conda create --name LSTATISTICS python=3.10
pip install -r requirements.txt
```
tracker2k 0.0.4
A log tracking client integration code for OpenAI agents sdk
Requires Python: >=3.6

A log tracking client integration code for OpenAI agents sdk


### Quick Start

1. 安装client lib sdk

```
pip install tracker2k
```

2. 集成agent服务代码

```
import tracker2k

# 注：
#   1.app_name：指服务的应用名字，例如：chuxing-assistant, travel-assistant
#   2.env_name：指服务应用的环境名称，例如：dev, pre, prod
#   3.endpoint：指链路远端服务地址
#       - 测试环境：https://ainlp-offline.xiaojukeji.com/asst/logagent/xuanji
#       - 线上环境：http://10.88.151.15:22323/logagent/xuanji
tracker2k.init(app_name="chuxing-assistant", env_name="dev", endpoint="https://ainlp-offline.xiaojukeji.com/asst/logagent/xuanji")


# 注：
#   1 trace_id 对应链路的trace_id
#   2. metadata中的query和uid，对应用户请求query和用户id

with trace(
        workflow_name=f"LPY Agent ({session_id})",
        group_id=f'Lpy Agent',
        trace_id=trace_id,
        metadata={"query": user_input, "uid": uid}
    ):
    ...your code...
```

3. 查看追踪数据

界面地址（测试环境）：https://yunzhi-dev.intra.xiaojukeji.com/#/traceOverview
CordyMotion 0.2.5
A package providing Cordy Motion libs
Requires Python: >=3.10

.
# CordyMotion
CordyMotion 是基于珠海市科迪电子科技有限公司平台的设备驱动运控程序客户端cordymotioncaller的一层封装。主要是用于IRU以及SimpleIQ等测试设备调用的API。
目前CordyMotion只支持Linux(Ubuntu22.04)版本。

---
## 主要特点
* CordyMotion 安装后，会将配置文件cordy.ini 安装在Ubuntu当前用户目录下的Bin/Config下（例如：~/Bin/Config/cordy.ini)
* cordy.ini配置文件中包含Serer端 IP 和 port. (需要正确配置Server端的IP 和 Port, 否则CordyMotion无法正确工作。)

---

## pip 安装
CordyMotion 已经发布到 Pypi 官网，通过 pip 指令可以安装。
注意：需要提前在 Ubuntu22.04 操作系统上安装python(版本3.10)
```
pip install CordyMotion
```

验证CordyMotion 是否安装成功
```
>>> from CordyMotion import IRU
>>> help(IRU)

```
输出如下内容:
```
|  IRU命名空间，包含方法fixture_load(), fixture_unload(), power_on_dut(), power_off_dut(), fixture_iru_pos()
 |  
 |  示例:
 |      >>> from CordyMotion import IRU
 |      >>> IRU.fixture_load()
 |  
 ...
```
表示安装成功

## 帮助说明

* 使用者可以通过 help() 来查询 CordyMotion 的帮助说明。目前支持对整个whl包、包中指定类、类中指定的方法的使用说明。

### 查看 class 说明
```
from CordyMotion import IRU, SimpleIQ

help(IRU) 
help(SimpleIQ)
```

### 查看 function 说明
```
from CordyMotion import IRU, SimpleIQ
help(IRU.fixture_load)
help(SimpleIQ.fixture_unload)
```
### 查看 Package 说明
```
import CordyMotion
help(CordyMotion)
```

### Version History
| version | Desc                                     |
|---------|------------------------------------------|
| 0.2.3   | add SimpleIQ.fixture_load_pos(), 治具回到上料位 |
| 0.2.4   | extend the timeout value to 300 seconds  |



### issue
* CordyMotion 通过TCP与 Server端连接，执行运控操作时，当前版本首先会尝试与Server连接，当超时3次都无法连接成功时，CordyMotion会退出连接。此时需要检查连接状态：
1. Server 端是否成功启动
2. 检查Server端的IP地址和监听端口
3. 检查CordyMotion的配置文件 cordy.ini 中配置的Server IP 和 Port是否正确。
import-future-annotations 1.0.0
Add import responsible for postponed evaluation of annotations to python files
Requires Python: >=3.8

# import-future-annotations

Tool that checks presence of import `from __future__ import annotations` in python files and adds it if it's missing.

## Installation

Requires Python >=3.8.

```bash
pip install import-future-annotations
```

## Usage

`import-future-annotations` takes filenames as positional arguments.

Additional options:
- `--check-only`: Don't modify files, only check. If script is applicable to any given file, the exit status code will be 1.
- `--allow-empty`: Add import to empty python files aswell.

## As a pre-commit hook

See [pre-commit](https://github.com/pre-commit/pre-commit) for instructions

Sample `.pre-commit-config.yaml`:
```yaml
-   repo: https://github.com/mbroton/import-future-annotations
    rev: v0.1.0
    hooks:
    -   id: import-future-annotations
```


## How does it work?

### Files without docstrings
`file.py` before:
```python
import os
import sys

...
```
Run pre-commit hook or execute command:
```bash
> import-future-annotations file.py
Adding annotations import to file.py
```
`file.py` after:
```diff
+ from __future__ import annotations
import os
import sys
```

### Files with docstrings
`file.py` before:
```python
"""
This is a module docstring.
"""
import os
import sys

...
```
Run pre-commit hook or execute command:
```bash
> import-future-annotations file.py
Adding annotations import to file.py
```
`file.py` after:
```diff
"""
This is a module docstring.
"""
+ from __future__ import annotations
import os
import sys
```

The import is placed **after** the module docstring (if present) or at the beginning of the file (if no docstring).

### Files with syntax errors
Files containing syntax errors are automatically skipped with a warning message:
```bash
> import-future-annotations broken_file.py
Skipping broken_file.py: file contains syntax errors
```

### Notes
- It won't add any blank lines, so I suggest to use/place it before [`reorder_python_imports`](https://github.com/asottile/reorder_python_imports) hook or other hooks that may complain about it.