semvec/pypi-packages huggingface dataset:
displaycli 1.0.0
A CLI tool to manage display resolutions on macOS.
License: MIT
Requires Python: >=3.8


<img width="1920" alt="displaycli" src="https://github.com/user-attachments/assets/a292fa49-91bb-4e4c-aae9-50eb782e8abd" />

# DisplayCLI
A CLI tool to manage display resolutions on macOS.

## How it works
This uses Objective-C, Quartz, and Cocoa, which are available on macOS, to control the resolution state and settings.
This works in most cases, but there may be some cases where it doesn't work.
If it doesn't work, please create an issue or fix it and submit a pull request.
If you know the cause of the problem, please let me know.

## Requiments
- macOS (Recommend: macOS Catalina 10.15+)
- Python 3.8+
- pip/uv [^1]

## Installation

**Using uv:**
```sh
# if not exist .venv: uv venv
uv tool install displaycli
```

**Using pip:**
```sh
pip3 install displaycli
```

**Using pip of system's python:**
```sh
/path/to/system/python -m pip install displaycli --break-system-packages
```

## Usage

### List Displays
```sh
displaycli displays
```

```text example_result.txt
nercone@macbook ~/D/DisplayCLI> displaycli displays
DisplayTool INFO     | Available Displays:

  ID: 0 | Name: Unknown Display (Main)
    └─ Current: 1710x1112 @2x (HiDPI) at 60.0Hz
nercone@macbook ~/D/DisplayCLI> 
```

### List Display's Native Supported Resolutions
```sh
displaycli modes <id of display>
```

```text example_result.txt
nercone@macbook ~/D/DisplayCLI> displaycli modes 0 
DisplayTool INFO     | Available modes for display ID 0:
  - 2560 x 1664 @ 60.00Hz (Pixels: 2560x1664)
  - 2560 x 1600 @ 60.00Hz (Pixels: 2560x1600)
  - 2048 x 1332 @ 60.00Hz (Pixels: 2048x1332)
  - 2048 x 1280 @ 60.00Hz (Pixels: 2048x1280)
  - 1920 x 1200 @ 60.00Hz (Pixels: 1920x1200)
nercone@macbook ~/D/DisplayCLI> 
```

### Check Display's Current Resolution
```sh
displaycli current <id of display>
```

```text example_result.txt
nercone@macbook ~/D/DisplayCLI> displaycli current 0
DisplayTool INFO     | Current mode for display 'Unknown Display' (ID: 0):
  - Resolution:   1710x1112 @2x (HiDPI)
  - Pixel Size:   3420x2224
  - Refresh Rate: 60.0Hz
nercone@macbook ~/D/DisplayCLI> 
```

### Change Display's Resolution (and Refresh Rate)
**Note:** This operation requires administrator privileges

```sh
sudo displaycli set <id of display> <width> <height> [--refresh <refresh rate>]
```

```text example_result.txt
nercone@macbook ~/D/DisplayCLI> sudo displaycli set 0 2560 1664 --refresh 60
Password:
DisplayTool INFO     | Attempting to set display 0 to 2560x1664 @ 60.0Hz
            WARN     | This will change your display resolution. Are you sure? [y/N]y
            INFO     | Display mode changed successfully!
nercone@macbook ~/D/DisplayCLI> 
```

[^1]: To be able to use it from anywhere, you need to have pip installed in your system's python.
agentsphere 2.1.6
Agentsphere SDK that give agents cloud environments
License: MIT
Requires Python: <4.0,>=3.9

## What is Agentsphere?
[Agentsphere](https://www.agentsphere.run/) is an open-source infrastructure that allows you to run AI-generated code in secure isolated sandboxes in the cloud. To start and control sandboxes, use our [JavaScript SDK](https://www.npmjs.com/package/agentsphere-js) or [Python SDK](https://pypi.org/project/agentsphere).

## Run your first Sandbox

### 1. Install SDK

```
pip install agentsphere-code-interpreter
```

### 2. Get your Agentsphere API key
1. Sign up to Agentsphere [here](https://www.agentsphere.run).
2. Get your API key [here](https://www.agentsphere.run/apikey).
3. Set environment variable with your API key
```
AGENTSPHERE_API_KEY= ***
```

### 3. Execute code with code interpreter inside Sandbox

```py
from agentsphere import Sandbox

with Sandbox.create() as sandbox:
    sandbox.run_code("x = 1")
    execution = sandbox.run_code("x+=1; x")
    print(execution.text)  # outputs 2
```

### 4. Check docs
Visit [Agentsphere documentation](https://www.agentsphere.run/docs/home).
libevdev 0.13.1
Python wrapper for libevdev
License: MIT
Requires Python: >=3.9
Keywords: evdev, input, libevdev, uinput

python-libevdev - Python wrapper for libevdev
=============================================

This project is a Python wrapper around libevdev, taking advantage of
libevdev's advanced event handling. Documentation is available here:
https://python-libevdev.readthedocs.io/en/latest/

libevdev makes it easy to

* read and parse events from an input device
* create a virtual input device and make it send events
* duplicate an existing device and modify the event stream

For information about libevdev see here:
https://freedesktop.org/wiki/Software/libevdev/

Source code
-----------

The source code of python-libevdev can be found at:
https://gitlab.freedesktop.org/libevdev/python-libevdev

License
-------

python-libevdev is licensed under the MIT license.

> Permission is hereby granted, free of charge, to any person obtaining a
> copy of this software and associated documentation files (the "Software"),
> to deal in the Software without restriction, including without limitation
> the rights to use, copy, modify, merge, publish, distribute, sublicense,
> and/or sell copies of the Software, and to permit persons to whom the
> Software is furnished to do so, subject to the following conditions: [...]

See the [COPYING](https://gitlab.freedesktop.org/libevdev/python-libevdev/blob/master/COPYING)
file for the full license information.
p115wsgidav 0.0.3.4
Python 115 WsgiDAV
License: MIT
Requires Python: <4.0,>=3.12
Keywords: python, 115, WsgiDAV

# Python 115 WsgiDAV.

## 安装

你可以通过 [pypi](https://pypi.org/project/p115wsgidav/) 安装

```console
pip install -U p115wsgidav
```

## 用法

### 模块

```python
from p115wsgidav import P115FileSystemProvider

P115FileSystemProvider().run_forever()
```

### 命令行

```console
$ p115wsgidav -h
usage: p115wsgidav [-h] [-H HOST] [-P PORT] [-cp COOKIES_PATH] [-cl] [-nt] [-o ORIGIN_302] [-wc WSGIDAV_CONFIG_PATH] [-l] [-v]

    🕸️ Python 115 WsgiDAV 🕷️

██████╗  ██╗ ██╗███████╗██╗    ██╗███████╗██████╗ ██████╗  █████╗ ██╗   ██╗
██╔══██╗███║███║██╔════╝██║    ██║██╔════╝██╔══██╗██╔══██╗██╔══██╗██║   ██║
██████╔╝╚██║╚██║███████╗██║ █╗ ██║█████╗  ██████╔╝██║  ██║███████║██║   ██║
██╔═══╝  ██║ ██║╚════██║██║███╗██║██╔══╝  ██╔══██╗██║  ██║██╔══██║╚██╗ ██╔╝
██║      ██║ ██║███████║╚███╔███╔╝███████╗██████╔╝██████╔╝██║  ██║ ╚████╔╝ 
╚═╝      ╚═╝ ╚═╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═════╝ ╚═════╝ ╚═╝  ╚═╝  ╚═══╝  

options:
  -h, --help            show this help message and exit
  -H, --host HOST       ip 或 hostname，默认值：'0.0.0.0'
  -P, --port PORT       端口号，默认值：8115
  -cp, --cookies-path COOKIES_PATH
                        cookies 文件保存路径，默认为当前工作目录下的 115-cookies.txt
                        如果你需要直接传入一个 cookies 字符串，需要这样写
                        
                        .. code:: shell
                        
                            COOKIES='UID=...; CID=..., SEID=...'
                            p115dav --cookies-path <(echo "$COOKIES")
                        
  -cl, --check-for-relogin
                        当风控时，自动重新扫码登录
  -nt, --no-thumbs      不要为请求图片链接提供缩略图
  -o, --origin-302 ORIGIN_302
                        设置 302 请求转发。如果为空，则由此模块提供；特别的，如果缺省此参数，则视为缓存链接；如果为空字符串 ''，则不缓存
  -wc, --wsgidav-config-path WSGIDAV_CONFIG_PATH
                        WsgiDAV 启动时的配置文件路径，支持 JSON、YAML 或 TOML 格式，会根据扩展名确定，不能确定时视为 JSON
                        如需样板文件，请阅读：
                        
                            https://wsgidav.readthedocs.io/en/latest/user_guide_configure.html#sample-wsgidav-yaml
                        
  -l, --license         输出授权信息
  -v, --version         输出版本号
```
cachedict 0.0.7
Python cache dict.
License: MIT
Requires Python: <4.0,>=3.12
Keywords: cache, dict

# Python cache dict.

## Installation

You can install via [pypi](https://pypi.org/project/cachedict/)

```console
pip install -U cachedict
```

## Usage

```python
import cachedict
```

## Reference

- [cache replacement policies](https://en.wikipedia.org/wiki/Cache_replacement_policies)
- [Caching in Python Using the LRU Cache Strategy](https://realpython.com/lru-cache-python/)
- [Memoize](https://wiki.python.org/moin/PythonDecoratorLibrary#Memoize)
- [functools.cache](https://docs.python.org/3/library/functools.html#functools.cache)
- [cachetools](https://cachetools.readthedocs.io/en/latest/)
- [cacheout](https://cacheout.readthedocs.io/en/latest/)
- [diskcache](https://grantjenks.com/docs/diskcache/)
pyintesishome2 1.8.9
A python3 library for running asynchronus communications with IntesisHome Smart AC Controllers
License: MIT

# pyIntesisHome2

This project is a python3 library for interfacing with Intesis air conditioning controllers, including cloud control of IntesisHome (Airconwithme + anywAiR) and local control of IntesisBox devices.
It is fully asynchronous using the aiohttp library, and utilises the private API used by the IntesisHome mobile apps.

### Home Assistant

To use with [Home Assistant](https://www.home-assistant.io/integrations/intesishome/), add the following to your configuration.yaml

#### IntesisHome configuration example

```yaml
climate:
  - platform: intesishome
    username: YOUR_USERNAME
    password: YOUR_PASSWORD
```

#### IntesisBox configuration example

```yaml
climate:
  - platform: intesishome
    device: IntesisBox
    host: 192.168.1.50
```

## Library usage

- Instantiate the IntesisHome controller device with username and password for the user.intesishome.com website.
- Status can be polled using the poll_status command suggested maximum of once every 5 minutes.
- Commands are sent using a TCP connection to the API which will then remain open until the connection times out.
- While the persistent TCP connection is open, status updates are pushed to the device over the socket meaning polling is not required (check using _is_connected_ property)
- Callbacks to be notified of state updates can be added with the add_callback() method.

### Library basic example

```python
import asyncio
from pyintesishome2 import IntesisHome

async def main(loop):
    controller = IntesisHome('username', 'password', loop=loop, device_type='airconwithme')
    await controller.connect()
    print(repr(controller.get_devices()))
    # Imagine you have a device with id 12015601252591
    if await controller.get_power_state('12015601252591') == 'off':
        await controller.set_power_on('12015601252591')

    await controller.set_mode_heat('12015601252591')
    await controller.set_temperature('12015601252591', 22)
    await controller.set_fan_speed('12015601252591','quiet')

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    result = loop.run_until_complete(main(loop))

```

### Control methods

- set_mode_heat(deviceID)
- set_mode_cool(deviceID)
- set_mode_fan(deviceID)
- set_mode_dry(deviceID)
- set_mode_auto(deviceID)
- set_temperature(deviceID, temperature)
- set_fan_speed(deviceID, 'quiet' | 'low' | 'medium' | 'high' | 'auto')
- set_power_on(deviceID)
- set_power_off(deviceID)
TozaText 0.1.7
TozaText is a cleaning library for preprocessing raw Uzbek and multilingual text data.
License: MIT
Requires Python: >=3.10

# 🧹 TozaText

**TozaText** is a lightweight and extensible text-preprocessing pipeline built for cleaning noisy, transcribed, or user-generated text data.  
It’s designed around a **modifier-based architecture** — each cleaning rule is a `DocumentModifier` that can be combined into a customizable `Pipeline`.

---

## Features

- **Modular design** – add or remove modifiers easily (e.g., repetition removal, transliteration)
- **Smart repetition cleaner** – removes consecutive repeated words, even with punctuation or ellipses
---
## Available Modifiers

TozaText currently includes the following modifiers out of the box:

| Modifier | Description | Example Input | Example Output |
|-----------|--------------|----------------|----------------|
| **`WordRepetitionFilter`** | Removes consecutive repeated words, even when separated by punctuation or ellipses. | `bu. bu. bu. shu shu qila qila` | `bu. shu qila` |
| **`ParagraphRepetitionFilter`** | Removes entire paragraphs if too many repeated paragraphs or characters are detected (useful for STT data with repeated intros). | `"Salom!\n\nSalom!\n\nSalom!"` | `""` |
| **`TransliteratorModifier`** | Converts Uzbek text between **Cyrillic** and **Latin** alphabets using `UzTransliterator`. | `"Салом дунё"` | `"Salom dunyo"` |
| **`UrlEmojiRemover`** | Remove or normalize URLs and links from text. | `"Bu sayt: https://example.com 😎"` | `"Bu sayt"` |


All modifiers inherit from:
```python
class DocumentModifier:
    def modify_document(self, text: str, *args, **kwargs) -> str:
        ...
```

## Installation

```bash
git clone https://gitlab.adliya.uz/shohrux1sakov/tozatext.git
cd TozaText
pip install -e .
``` 

## Code Example 
```
from datasets import load_dataset
from TozaText import Pipeline, WordRepetitionFilter, ParagraphRepetitionFilter

data = load_dataset("aktrmai/youtube_transcribe_data", split="train")

pipeline = Pipeline([
    WordRepetitionFilter(),
    ParagraphRepetitionFilter(),
])

cleaned = pipeline.process_hf_dataset(data, column="text")
```
DicomToolsForMCP 1.0.1
基于 MCP (Model Context Protocol) 的 DICOM 医学影像文件分析工具
License: MIT
Requires Python: >=3.10
Keywords: dicom, mcp, medical-imaging, model-context-protocol, orthanc

# DicomToolsForMCP

`DicomToolsForMCP` 是一个基于 MCP (Model Context Protocol) 的 DICOM 医学影像文件分析与上传工具。它提供了一整套命令行工具，用于处理、分析 DICOM 文件，并将其安全地上传到兼容 MCP 的服务器。

## 功能特性

- **DICOM 文件扫描与解析**: 递归扫描指定目录，解析 DICOM 文件，并提取元数据。
- **数据映射与预处理**: 根据预定义的规则，将 DICOM 标签映射为 MCP 模型所需的数据结构。
- **安全上传**: 通过 Cookie 认证，将处理后的序列安全上传到服务器。
- **状态查询**: 实时查询已上传序列的处理状态。
- **日志记录**: 自动记录每次上传的详细信息（如 `study_uid` 和目录路径），方便后续追踪。

## 安装

您可以通过 pip 从 PyPI 安装此工具：

```bash
pip install DicomToolsForMCP
```

## 使用方法

该工具提供了一个名为 `DicomToolsForMCP` 的命令行入口。

### 1. 配置文件

在运行前，请确保您的项目根目录中包含一个 `config.json` 文件，用于配置服务器地址和认证信息。

**`config.json` 示例:**

```json
{
  "base_url": "https://your-mcp-server.com",
  "cookie": "ls=your_session_cookie_here"
}
```

### 2. 运行主程序

通过以下命令启动主程序：

```bash
DicomToolsForMCP
```

程序将引导您完成以下操作：
1.  选择要处理的 DICOM 文件目录。
2.  自动扫描、解析并上传文件。
3.  查询并显示上传结果。

## 依赖项

本项目依赖于以下 Python 包：

- `mcp>=0.9.0`
- `pydicom>=2.4.0`
- `requests>=2.31.0`
- `pydantic>=2.0.0`
- `tqdm>=4.66.0`
- `pandas`
- `pyorthanc`

所有依赖项将在安装 `DicomToolsForMCP` 时自动安装。

## 许可证

本项目采用 MIT 许可证。详情请参阅 `LICENSE` 文件。