semvec/pypi-packages huggingface dataset:
pyautoppt 0.1.1
这是一个简单的 PPT 自动化
Requires Python: >=3.7,<4.0
Keywords: ppt

# pyautoppt

## 基本用法

```python
from pyautoppt import ppt

# 新建 ppt文件
pre_ref = ppt.add()
# 添加幻灯片
pre_ref.slides.add(1,12)

```
treesum 0.3.3
Utility and library for summarizing trees.

# Parsimonious Tree Summary
Do you like looking at trees, but hate scrolling?

`treesum` takes a complex tree, and tries to show the most information without printing too many lines.

The tree is expected to consist of nodes, each of which has a weight. `treesum` will expand branches with highest weight and collapse those with lowest. The weights are a measure of how much you care about different nodes of the tree: They can be file sizes, diff deltas, how much you like each item, whatever you want. If you don't provide weights, all nodes will be assumed to have a weight of 1.

## Usage
Summarize list of paths:
```shell script
find . | treesum paths
```

Summarize `rsync` changelist:
```shell script
rsync -raihP --dry-run /source/dir /dest/dir > rsync.txt
treesum rsync < rsync.txt
```

You can, of course, also use `treesum` as a library. The basic method is `treesum.summarize.summarize_tree` which takes a tree constructed from `treesum.summarize.Node` instances. If you don't want to do this by hand, `treesum.convert` contains methods for constructing a tree from various text representations. Try looking at the implementation of `treesum.cli` for an example of how to do this.

## Install
Run: `pip install treesum`
tkitRegex 0.0.0.116626169
Terry toolkit tkitRegex 正则合集 ,

# tkit-regex-tools
tkit regex tools 正则合集


```bash
pip install tkitRegex

# or
pip install git+https://github.com/napoler/tkit-regex-tools
```


```python
from tkitRegex import regex_plus
regexs=[
    {
        "regex_key":'follow_characters',
        "replace":''
    },
    {
        "regex_key":'email',
        "replace":'your_email_address'
    }
]
text="Here is our guide on how to 123@qq.com give 123@qq.com CBD oil to dogs. Follow us on Twitter @TriBeCa and @TriBeCaDog. Follow us on Facebook @TriBeCa and @TriBeCaDog."
print("replace:")
out=regex_plus(text,regexs=regexs,test=True,do="replace")
print(out)
print("match:")
for it in regex_plus(text,regexs=regexs,test=True,do="match"):
    print(it)


```

示例使用：
https://github.com/napoler/tkit-regex-tools/blob/main/test.ipynb



推荐文档

https://github.com/manoss96/pregex
https://github.com/napoler/pregex
https://pregex.rtfd.io/
nonebot-plugin-BiliRequestBarand 0.1.0
use bilibili uid join in group

<p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://github.com/Shadow403/nonebot_plugin_BiliRequestBarand/blob/main/nonebot_logo_BiliRequestBarand.png" width="260" height="260" alt="nonebot"></a>
</p>

<div align="center"> 

# nonebot_plugin_BiliRequest

<div>

<div align=left> <div>

## 已实现功能
- 以B站UID审核入群（粉丝牌）

## 使用方法

- 使用pip

```
pip install nonebot_plugin_BiliRequestBarand
```

- 点击DOWNLOAD ZIP

<img width="376" alt="使用方法BiliRequest(barand)" src="https://user-images.githubusercontent.com/112923496/188910748-79b5dd6d-b06d-4e2a-ad09-e8e6e36d38b5.png">

- 打开机器人目录下的 'pyproject.toml'，一般是在第17行

```
17| plugin_dirs = ["XXX/XXX"]  <- XXX为插件的路径
##|               ^^^^^^^^^^^
```

- 将下载的文件放入 XXX/XXX目录下

- 重新加载插件

## 说明依赖
```
10| import json,time, requests
11| from nonebot import on_request, logger
12| from nonebot.adapters.onebot.v11 import Bot, GroupRequestEvent
```

## 注意事项
```
20| if event.group_id == <群号>: <- 直接替换成要使用的群号
##|                     ^^^^^^^
21|   raw = json.loads(event.json())
22|   gid = str(event.group_id)
23|   uid = str(event.user_id)
24|   flag = raw['flag']
```
```
27| comment = raw['comment']
28| BiliUID = ''.join(filter(str.isdigit,comment))
29| cookies = {"cookie": "<你的cookie>"}  <- 填入cookie
                          ^^^^^^^^^^^^
```

<p align="center">
  <a href="https://github.com/Shadow403/nonebot_plugin_BiliRequestBarand/blob/main/get_cookie.png"><img src="https://github.com/Shadow403/nonebot_plugin_BiliRequestBarand/blob/main/get_cookie.png" width="1000" height="710" alt="nonebot"></a>
</p>


```
34| # 同意入群
35| if '<粉丝牌子名>' in response: <- 直接替换成粉丝牌名
##|    ^^^^^^^^^^^^
36|   logger.info(f"同意{uid}加入群 {gid},验证消息为 “{comment}”")
37|   await bot.set_group_add_request(
38|     flag=flag,
39|     sub_type=sub_type,
40|     approve=True,
41|     reason=' ',
42|   )
43| # 拒绝入群
44| if '<粉丝牌子名>' not in response: <- 直接替换成粉丝牌名
##|    ^^^^^^^^^^^^
45|   logger.info(f"拒绝{uid}加入群 {gid},验证消息为 “{comment}”")
46|   await bot.set_group_add_request(
47|     flag=flag,
48|     sub_type=sub_type,
49|    approve=False,
50|     reason='未获得粉丝牌或未打开展示设置',
51|   )
```

### 未来计划
- Tips：如果在不咕的情况下 
  - 实现单插件分群管理
  - 实现切换审核模式（粉丝/持有粉丝牌/等）

#### 反馈问题
- 邮箱：anonymous_hax@foxmail.com
termcharts 1.1.2
Download stats for Python packages
Requires Python: >=3.7
Keywords: chart terminal plot cli command-line

# termcharts

Terminal charts with rich compatibility in mind


![](https://github.com/Abdur-RahmaanJ/termcharts/raw/stable/assets/pie.png)

# bar

![](https://github.com/Abdur-RahmaanJ/termcharts/raw/stable/assets/bar.png)

![](https://github.com/Abdur-RahmaanJ/termcharts/raw/stable/assets/bar_h.png)


```python
import termcharts


chart1 = termcharts.bar({'roll': 24, 'bread':10, 'rice':30, 'pasta':50}, title='brunches')
chart2 = termcharts.bar({'roll': 24, 'bread':10, 'rice':30, 'pasta':50}, title='brunches', mode='v') # vertical
chart3 = termcharts.bar([10, 20, 30, 40], title='brunches') # from list
print(chart1)
print(chart2)
print(chart3)
```

# Pie

```python
import termcharts


chart = termcharts.pie({'pencil':10, 'eraser': 20, 'ruler': 30}, title='stationary')
print(chart)
```

# Doughnut

```python
import termcharts


chart = termcharts.doughnut({'a':10, 'b': 20, 'c': 30}, title='aphabet dist')
print(chart)
```


# Rich compatibility


```python
from termcharts import pie
from termcharts import doughnut
from termcharts import bar

from rich.console import Console
from rich.columns import Columns
from rich.panel import Panel

console = Console()

charts = [
    doughnut({'a':10, 'b': 20, 'c': 30, 'd': 20}, title='aphabet dist', rich=True),
    pie({'wefwefqwddwqdqwda':10, 'b': 20, 'c': 30, 'd': 20}, rich=True),
    bar({'roll': 24, 'bss':10, 'wes':30, 'ewfwef':50}, title='Brunches', rich=True)
    ]
user_renderables = [Panel(x, expand=True) for x in charts]
console.print(Columns(user_renderables))
```


# Testing

All testing is currently handled by the [pytest](https://docs.pytest.org/en/7.1.x/) module and are incomplete at the momment.

Installation:
```
pip install -U pytest
```

Run all the testcases in a file:
```
pytest tests/<file>.py
```

Run one testcase in a file:
```
pytest tests/<file>.py::<function_name>
```

Exclude one testcase in a file:
```
pytest tests/<file>.py -k 'not <function_name>'
```
flask-lan 0.1.5
Flask-Lan is a schema validator and swagger generator but more modernized
Requires Python: >=3.8
Keywords: flask,plugin,swagger,validator

# flask-lan

`flask-lan` is a schema validator and swagger generator with more modernized.

!!! Warning

    Currently, `flask-lan` is still under active development(before verion 1.0.0). Don't use it in production.

It's kind of like the famous library `FastAPI`, bringing part of brilliant features of `FastAPI` to your Flask application.
For example, it uses [Pydantic](https://github.com/samuelcolvin/pydantic) for Request/Response params validation and auto-generates `swagger` docs.

## Feature

-   Intuitive and easy to use.
-   Use type hinting to validate request/response params.
-   Auto-generate `swagger` docs.

## Quick start

```bash
pip install flask-lan
```

A simple example:

```python
from flask import Flask
from pydantic import BaseModel
from flask_lan import validator, docs

app = Flask(__name__)


@docs(tag="books", desc="Get books")
@app.get("/books/<id>/")
@validator
def home(id:int, q: str, star: float=10):
    return {"id":id, "q": q, "star": star}

if __name__ == "__main__":
    app.run(debug=True)

```

## License

This project is licensed under the terms of the MIT license.