semvec/pypi-packages huggingface dataset:
MingLogUtils 2.0.4
自定义相关工具库
License: MIT

# 引言
在实际工作中一些常见的可视化库(例如:matplotlib, cv2, PIL等)对于部分常用功能支持的不够好，在实际使用的时候往往需要进一步改写封装，本库用于记录一些在实际使用的时候基于现有的一些可视化库，自己改写的一些函数，这些函数会比原有的库兼容性更好。

# 功能描述
## CVUtils
包括但是不限于以下功能：<br>
1. show_image(image, mode="bgr")：展示图片
2. read_image(filename)：读取中文路径下的图片
3. resize2gray(image, new_shape)：统一尺寸并修改为灰度图像
4. cv2AddChineseText(img, text, position, textColor=(0, 255, 0), textSize=30, stroke_width=2)：在图片中添加中文文本
5. copy_files(all_filepath, output_path)：使用协程技术拷贝文件，支持批量操作（速度极快）
6. split_rectangle_image_from_imageArray(ori_image, left_top_point, right_bottom_point)：切分矩形区域
7. image_correction(img)：霍夫变换图片校正
8. Num2Plate(plate_nums)：针对车牌识别任务，将数值列表还原为中文车牌
9. save_list2txt(list_, output_file)：将列表中的内容按行存储到指定文件中
10. train_test_split2txt(filenames, test_size=0.2, output_dir=None)：训练集测试集切分，针对图片
11. COCOLableAnalyse类：将COCO数据集标签转化为其他常用类型。主要有两种：
    - a.VOC：coco2voc();
    - b.YOLO：coco2yolotxt()

## SpiderUtils
包括但不限于以下功能：<br>
1. getDouBanComment(url, header)：获取豆瓣短评name, comment_time, comment_location, comment字段
2. saveListStr2DataFrame(saveExcelPath=None, **kwargs)：将列表字段转化为数据框或存储到Excel文件中
3. getSinaText(url, header={})：获取新浪微博博文正文。
4. getSinaComment(url, header={})：获取新浪微博博文评论。
5. get_stopword()：获取停用词点
6. Get_Bilibili_Vedio(url)：B站视频下载
        download()：调用此方法可以下载视频.
7. concatAV(inputpath='.', outputpath='ConcatResult')：用于合并音频和视频。

更多功能持续开发中~~~
mm-tot 0.0.4
ToT - Pytorch
License: MIT
Requires Python: >=3.6,<4.0
Keywords: artificial intelligence,deep learning,optimizers,Prompt Engineering

[![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)

# MultiModal Tree of Thoughts
Multi-Modal Foundation Model -> Deepfloyd iF or stable diffusion -> mmllm -> if

The objective is to implement DALLE-3 where given an input task to generate an image => its fed and enriched by the multimodal llm => passed into image generation



# Appreciation
* Lucidrains
* Agorians


# Install
`pip install mm-tot`

# Usage



# Architecture

# Todo


# License
MIT
telethon2 1.30.3
Full-featured Telegram client library for Python 3
License: MIT
Requires Python: >=3.5
Keywords: telegram api chat client library messaging mtproto

Telethon
========
.. epigraph::

  ⭐️ Thanks **everyone** who has starred the project, it means a lot!

|logo| **Telethon** is an asyncio_ **Python 3**
MTProto_ library to interact with Telegram_'s API
as a user or through a bot account (bot API alternative).

.. important::

    If you have code using Telethon before its 1.0 version, you must
    read `Compatibility and Convenience`_ to learn how to migrate.
    As with any third-party library for Telegram, be careful not to
    break `Telegram's ToS`_ or `Telegram can ban the account`_.

What is this?
-------------

Telegram is a popular messaging application. This library is meant
to make it easy for you to write Python programs that can interact
with Telegram. Think of it as a wrapper that has already done the
heavy job for you, so you can focus on developing an application.


Installing
----------

.. code-block:: sh

  pip3 install telethon


Creating a client
-----------------

.. code-block:: python

    from telethon import TelegramClient, events, sync

    # These example values won't work. You must get your own api_id and
    # api_hash from https://my.telegram.org, under API Development.
    api_id = 12345
    api_hash = '0123456789abcdef0123456789abcdef'

    client = TelegramClient('session_name', api_id, api_hash)
    client.start()


Doing stuff
-----------

.. code-block:: python

    print(client.get_me().stringify())

    client.send_message('username', 'Hello! Talking to you from Telethon')
    client.send_file('username', '/home/myself/Pictures/holidays.jpg')

    client.download_profile_photo('me')
    messages = client.get_messages('username')
    messages[0].download_media()

    @client.on(events.NewMessage(pattern='(?i)hi|hello'))
    async def handler(event):
        await event.respond('Hey!')


Next steps
----------

Do you like how Telethon looks? Check out `Read The Docs`_ for a more
in-depth explanation, with examples, troubleshooting issues, and more
useful information.

.. _asyncio: https://docs.python.org/3/library/asyncio.html
.. _MTProto: https://core.telegram.org/mtproto
.. _Telegram: https://telegram.org
.. _Compatibility and Convenience: https://docs.telethon.dev/en/stable/misc/compatibility-and-convenience.html
.. _Telegram's ToS: https://core.telegram.org/api/terms
.. _Telegram can ban the account: https://docs.telethon.dev/en/stable/quick-references/faq.html#my-account-was-deleted-limited-when-using-the-library
.. _Read The Docs: https://docs.telethon.dev

.. |logo| image:: logo.svg
    :width: 24pt
    :height: 24pt
nurses-2 0.25.0
A widgetful and async-centric library for terminal graphics.
License: MIT
Requires Python: >=3.10

# nurses_2 - terminal graphics

A widgetful and async-centric library for creating graphical applications in the terminal.

Create games:

![Tetris](https://raw.githubusercontent.com/salt-die/nurses_2/main/preview_images/tetris.png)

Simulations:

![Cloth](https://raw.githubusercontent.com/salt-die/nurses_2/main/preview_images/cloth.png)

Or entire feature-filled applications:

![Windows](https://raw.githubusercontent.com/salt-die/nurses_2/main/preview_images/windows.png)

See it in action: [Video Preview](https://youtu.be/LLI6ANQ6MH4).

[Read the docs](https://salt-die.github.io/nurses_2/index.html)
cv2multilinewrite 0.10
cv2.putText with new lines
License: MIT
Keywords: cv2,putText


# cv2.putText with new lines 

## Tested against Windows 10 / Python 3.11 / Anaconda

### pip install cv2multilinewrite

Code from: https://stackoverflow.com/a/73471951/15096247


![](https://i.stack.imgur.com/2egap.png)

```python
import cv2
import numpy as np

image = 200 * np.ones((550, 410, 3), dtype=np.uint8)

image = add_text_to_image(
    image,
    "New line\nDouble new line\n\nLine too longggggggggggggggggggggg",
    top_left_xy=(0, 10),
)
image = add_text_to_image(
    image,
    "Different font scale",
    font_scale=0.5,
    font_color_rgb=(0, 255, 0),
    top_left_xy=(0, 150),
)
image = add_text_to_image(
    image,
    "New line with bg\nDouble new line\n\nLine too longggggggggggggggggggggg",
    bg_color_rgb=(255, 255, 255),
    font_color_rgb=(255, 0, 0),
    top_left_xy=(0, 200),
)
image = add_text_to_image(
    image,
    "Different line specing,\noutline and font face",
    font_color_rgb=(0, 255, 255),
    outline_color_rgb=(0, 0, 0),
    top_left_xy=(0, 350),
    line_spacing=1.5,
    font_face=cv2.FONT_HERSHEY_SCRIPT_SIMPLEX,
)
import matplotlib.pyplot as plt

plt.imshow(image)
plt.show()
```
eaot 0.0.1
Paper - Pytorch
License: MIT
Requires Python: >=3.6,<4.0
Keywords: artificial intelligence,deep learning,optimizers,Prompt Engineering

[![Multi-Modality](agorabanner.png)](https://discord.gg/qUtxnK2NMf)

# Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt Optimizers
Agora's open source implementation of the paper: Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt Optimizers

[PAPER LINK](https://arxiv.org/pdf/2309.08532.pdf)

## Installation

You can install the package using pip

# Citation
```BibTeX
@misc{2309.08532,
Author = {Qingyan Guo and Rui Wang and Junliang Guo and Bei Li and Kaitao Song and Xu Tan and Guoqing Liu and Jiang Bian and Yujiu Yang},
Title = {Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt Optimizers},
Year = {2023},
Eprint = {arXiv:2309.08532},
}
```
easy-spider-tool-document 1.0.13
easy-spider-tool 可选xpath/jsonpath聚合解析扩展包
License: MIT
Requires Python: >=3.6.8
Keywords: easy,spider,tool,document

# simple-spider-tool-document

easy-spider-tool 可选xpath/jsonpath聚合解析扩展包

## 安装

```shell
pip install easy-spider-tool[document]
```

## 主要功能

- `data_extractor` 表达式数据解析（支持jsonpath,xpath）
- `xpath` xpath语法解析数据（支持首选项，设置默认值）

## 简单使用

```python
from easy_spider_tool_document import data_extractor

data = '<p>这是一个easy_spider_tool的document扩展的示例</p>'
print(data_extractor(data, ['//p//text()'], first=True, default=''))
# 这是一个easy_spider_tool的document扩展的示例

data = {
    "code": 200,
    "data": [
        {
            "id": 1,
            "username": "admin",
            "level": "boss"
        },
        {
            "id": 2,
            "username": "user",
            "level": "staff"
        }
    ]
}

print(data_extractor(data, ['$.data[*].username'], first=False, default=''))
# ['admin', 'user']
```

## 链接

Github：https://github.com/hanxinkong/easy-spider-tool-document

在线文档：https://easy-spider-tool-document.xink.top/

## 注明