semvec/pypi-packages huggingface dataset:
mai2_pcount 0.2.3
wmc的机厅在线人数信息查询、修改插件~
License: MIT
Requires Python: <4.0,>=3.10

# mai2_pcount

## 介绍

wmc的机厅在线人数信息查询、修改插件~

## 功能

使用 mai2_pcount_help 来查看帮助信息喔~

- pcount on: 在本群开启这个插件~不开启的话，下面的指令（除了关闭）都用不了唔~

- pcount off: 在本群关闭这个插件~

- 添加机厅: 使用 `添加机厅 机厅名 机厅代号` 来添加哦~

- 删除机厅: 使用 `删除机厅 机厅代号` 来删除哦~

- [机厅代号]+ - =[数字]: 使用类似于 `mw=6` 的指令来修改机厅人数哦~

- [机厅代号]几: 使用类似于 `mw几` 的指令来查询机厅人数哦~

- 修改地区名 [地区名]: 使用类似于 `修改地区名 wmc聚集地` 的指令来修改地区名哦~

注意注意~！各个群聊的数据都是不一样的，需要自行配置机厅哦~

有问题可以致电Miaowing，我会竭尽全力帮助您解决问题哒！

## 安装

### 使用 NB-CLI 安装

在 Nonebot 根目录执行

```bash
nb plugin install mai2_pcount
```

### 手动安装

1. 将 `mai2_pcount` 文件夹放入你的 Nonebot 插件目录中

2. 在 `bot.py`中写入以下代码：

   ```python
   nonebot.load_plugin("FOLDER-TO-PLUGIN.mai2_pcount")

## 许可

MIT License
aslooper 1.3.0
looper-佛跳墙活套：捕获asyncio cancel报错。
License: MIT
Requires Python: >=3.11
Keywords: async, asyncio, loop

# aslooper

> looper
> Used to cancel all running tasks after catching SIGINT, SIGTERM signals,
> Quit running without raise asyncio cancelled error.

## use looper

```python
import asyncio
from aslooper import looper


async def run(i):
    while True:
        print(f"{i} running.")
        await asyncio.sleep(1)


@looper()
async def main():
    tasks = [run(i) for i in range(3)]
    await asyncio.gather(*tasks)


asyncio.run(main())
```

## run with a call

```python
import asyncio
from aslooper import looper


async def run(i):
    while True:
        print(f"{i} running.")
        await asyncio.sleep(1)


def some_call():
    print("some_call")


@looper(some_call)
async def main():
    while True:
        print("run something.")
        await asyncio.sleep(1)


asyncio.run(main())
```
superfast-cli 0.1.1
A CLI tool for generating project files
License: MIT

# SuperFast CLI Tool

This CLI tool is designed for generating common file types used in FastAPI projects, such as controllers, models, services, and entities.

## Installation

## Installation

You can install the CLI tool via pip:

```sh
pip install superfast-cli
```
## Usage
Generate files based on file type and class name:
```sh
fast create FILE_TYPE CLASS_NAME [--directory DIRECTORY]
```
##### Arguments: 
- FILE_TYPE - The type of file to generate. Valid values are:
  - controller: Creates a controller file.
  - model: Creates a model file.
  - service: Creates a service file.
  - entity: Creates an entity file.
  - res: Creates all file types (controller, model, service, and entity).
- CLASS_NAME - The name of the class to generate the file for.
- Options: -d, --directory - Directory to create the file in. Default is the current directory.

## Example
### Controller
Creates a controller.py file in the current location. You can also specify a location:
```sh
fast create controller MyController
```
```shell
fast create controller MyController --directory app/category
```
Generated File: `controller.py`
```shell
from fastapi import APIRouter

router = APIRouter()

@router.get("/")
async def get_items():
    # Implement your logic here
    pass

@router.post("/")
async def create_item():
    # Implement your logic here
    pass
```

### Model
Creates an `model.py` file:
```sh
fast create model Category
```
```shell
fast create model Category --directory app/category
```
Generated File: `model.py`
```shell
from pydantic import BaseModel

class CategoryModel(BaseModel):
    id: int
    name: str
    description: str
```

### Entity
Creates an `entity.py` file:
```sh
fast create entity Category
```
```shell
fast create entity Category --directory app/category
```
Generated File: `entity.py`
```shell
# entity.py
from sqlalchemy import Column, Integer, String
from database import Base

class CategoryEntity(Base):
    __tablename__ = "category"

    id = Column(Integer, primary_key=True, index=True, autoincrement=True)
    name = Column(String, index=True)
```
### Service
Creates an `service.py` file:
```sh
fast create Service Category
```
```shell
fast create service Category --directory app/category
```
Generated File: `service.py`
```shell
# service.py
from sqlalchemy.orm import Session
from fastapi import Depends
from database import get_db


class CategoryService:
    def __init__(self, db: Session):
        self.db = db


def get_category_service(db: Session = Depends(get_db)) -> CategoryService:
    return CategoryService(db=db)
```

### Resource
Creates all file types (`controller.py`, `model.py`, `service.py`, and `entity.py`):
```sh
fast create res Category
```
```shell
fast create res Category --directory app/category
```
Generated Files
```shell
- controller.py
- service.py
- model.py
- entity.py
```