semvec/pypi-packages huggingface dataset:
varcache 0.2.0
Simple file-based cache for Python objects.
License: MIT
Requires Python: >=3.12

# varcache

A simple library that provides a way to store and synchronize Python objects on a disk. It can be a good alternative towards SQLite or other solutions that seem to be too complicated in your project. Inside `varcache` uses `pickle`.

## Installation

```
pip install varcache
```

## Basic example

```python
from varcache import Varcache

# Configure the drectory to save
vcache = Varcache(dirpath='./storage')

# Load and save example
obj1 = vcache.load(name='obj1', default=dict)
obj1['x'] = 25
vcache.save(obj1)

# Binding example
obj2 = []
vcache.bind(obj2, name='obj2')
obj2.append(36)
vcache.save(obj2)

# Plain save
obj3 = {2, 3, 5, 7}
vcache.save(obj3, name='obj3')
```
nonebot-plugin-sendmsg-by-bots 0.2.0
a send msg tools
License: MIT
Requires Python: >=3.8

<div align="center">x
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-sendmsg-by-bots

_✨ NoneBot 多bot发送消息 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/nek0us/nonebot-plugin-sendmsg-by-bots.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-sendmsg-by-bots">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-sendmsg-by-bots.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.10+-blue.svg" alt="python">

</div>

## 📖 介绍

让连接的每个bot发送消息，如无好友或群则跳过

## 💿 安装

<details open>
<summary>使用 pip 安装</summary>

    pip install nonebot-plugin-sendmsg-by-bots
</details>
<details open>
<summary>使用 conda 安装</summary>

    conda install nonebot-plugin-sendmsg-by-bots
</details>



## 🎉 使用
### 指令表

```bash
from nonebot_plugin_sendmsg_by_bots import tools
# 发送群消息（能发都发）：
await tools.send_group_msg_by_bots(group_id: int,node_msg: Message|MessageSegment|str)
# 发送群消息（只发成功一次）(self_id 可选，选了之后指定哪个id的bot账号发送）：
await tools.send_group_msg_by_bots_once(group_id: int,node_msg: Message|MessageSegment|str,self_id: Optional[str] = None)
# 发送群合并消息（能发都发）：
await tools.send_group_forward_msg_by_bots(group_id: int,node_msg: list)
# 发送群合并消息（一次收手）：
await tools.send_group_forward_msg_by_bots_once(group_id: int,node_msg: list,self_id: Optional[str] = None)
# 发送私聊消息（能发都发）：
await tools.send_private_msg_by_bots(user_id: int,msg: Message|MessageSegment|str)
# 发送私聊消息（只发成功一次收手）：
await tools.send_private_msg_by_bots_once(user_id: int,msg: Message|MessageSegment|str,self_id: Optional[str] = None)
# 发送私聊合并消息（能发都发）：
await tools.send_private_forward_msg_by_bots(user_id: int,msg: list)
# 发送私聊合并消息（一次收手）：
await tools.send_private_forward_msg_by_bots_once(user_id: int,msg: lis,self_id: Optional[str] = Nonet)
# 被动回复消息，以拉格兰md形式发送
await tools.send_text2md(text: str):

# group_id : 群号
# user_id : 好友qq号
# node_msg : 合并转发消息列表
# msg : 消息

# 发送成功会返回True，否则会返回False
# 发送合并消息，超过200条会自动转多条发送

# 从所有bot的群列表检索群信息
# 未检索到会返回 {"group_name":"未获取到群名","group_id":group_id}
group_info = await tools.get_all_group_info(group_id:int)
# 从所有bot的群列表检索群成员列表
member_list = await get_group_member_list(group_id: int)

```