semvec/pypi-packages huggingface dataset:
pongjun-notes 1.0.12
A Django app for managing notes

# Pongjun Notes

**pongjun-notes** is a reusable Django app for managing notes.

---

## Installation

1. Install the package:
   ```bash
   pip install pongjun-notes
   ```

2. Add `'notes'` to `INSTALLED_APPS` in your `settings.py`:

   ```python
   INSTALLED_APPS = [
       'notes',
   ]
   ```

3. Include the `notes` URLs in your project's `urls.py`:

   ```python
   from django.urls import path, include

   urlpatterns = [
       path('notes/', include('notes.urls')),
   ]
   ```

4. Apply migrations:

   ```bash
   python manage.py migrate
ncatpy 1.0.0
基于Napcat.QQ开发的pythonsdk
Requires Python: >=3.10

# NcatBot

![logo](https://gitee.com/li-yihao0328/NcatBot/raw/master/resource/logo.png)

---

NcatBot是一个开源的基于Napcat.QQ开发的PythonSDK，使用python调用QQ。

使用简单的代码，你就可以完成一个能够处理所有信息的QQ机器人。

你还可以使用别人编写的插件！！！

#### 安装

---

可以通过本命令安装ncatbot：

```bash
git clone https://gitee.com/li-yihao0328/NcatBot.git
```

#### 简单入门实例

---

首先你需要填写config.yaml文件:

```yaml
ws:
  Protocol: ws
  ip: 127.0.0.1
  port: 3001

http:
  Protocol: http
  ip: 127.0.0.1
  port: 3000
  sync: true

plugin:
  xunfei:
    api_url:
    api_key:
    model: generalv3.5
    personality: You are a helpful assistant.
```

然后运行以下代码：

```python
# encoding: utf-8

import ncatpy
from ncatpy import logging
from ncatpy.message import GroupMessage,PrivateMessage

_log = logging.get_logger()

class MyClient(ncatpy.Client):
    async def on_group_message(self, message: GroupMessage):
        _log.info(f"收到群消息，ID: {message.message.text.text}")
        _log.info(message.user_id)
        if message.user_id == 2793415370:
            # 当提问者的QQ号是2793415370时，调用XunfeiGPT插件回答他的问题
            # t = await self._XunfeiGPT.ai_response(input=message.message.text.text, group_id=message.group_id) # 单轮ai聊天
            t = await self._XunfeiGPT.ai_response_history(input=message.message.text.text, info= True, group_id=message.group_id)# 多轮ai聊天,可用参数：开发者模式：info=True,历史记录次数：history_num=5
            _log.info(t)
        if message.message.text.text == "你好":
            # 通过http发送消息
            t = await message.add_text("你好,o").reply()
            _log.info(t)
            

    async def on_private_message(self, message: PrivateMessage):
        _log.info(f"收到私聊消息，ID: {message.message.text.text}")
        if message.message.text.text == "你好":
            t = await self._api.send_msg(user_id=message.user_id, text="你好,o")
            _log.info(t)

if __name__ == "__main__":
    # 1. 通过预设置的类型，设置需要监听的事件通道
    # intents = ncatpy.Intents.public() # 可以订阅public，包括了私聊和群聊

    # 2. 通过kwargs，设置需要监听的事件通道
    intents = ncatpy.Intents(group_event=True)
    client = MyClient(intents=intents, plugins=["XunfeiGPT"])# 如果没有插件，则不需要添加plugins=["XunfeiGPT"]
    client.run()
```

#### 插件

---

插件是NcatBot的扩展，你可以使用别人编写的插件，也可以自己编写插件。

插件编写逻辑具体查看ncatpy/plugins/XunfeiGPT.py

编写好的插件进行pr，必须给出详细的示例和说明，目前不提供在线安装，自行安装只需要下载别人的插件，将其放入plugins文件夹即可。

此方案只是预览版！！！所有要求提在[QQ群](https://qm.qq.com/q/LSdJ4p9UOW)里面

时间有限，如果有不好的地方，欢迎提issue，或者加QQ群交流。

#### 致谢

---

[botpy](https://github.com/tencent-connect/botpy) - 一个基于 Python 的 QQ 机器人 SDK，参考了logging

[Napcat](https://github.com/NapNeko/NapCatQQ) - 现代化的基于 NTQQ 的 Bot 协议端实现
chzzk-sdk 0.1.3
An unofficial Python SDK Library for CHZZK
Requires Python: >=3.11.7

# chzzk-sdk

네이버 라이브 스트리밍 서비스 치치직(CHZZK)의 비공식 API 라이브러리.<br/>
공부 목적으로 만들었으며, 참조한 레포는 하단의 `References`에 명시했습니다.

- 로그인 (쿠키 사용)
- 검색 (채널, 영상, 생방송)
- 채널 정보 조회
- 방송 상태 및 상세 정보 조회
- 채팅 보내기
- 이벤트 구독
  - 연결 상태 (on_connect, on_disconnect)
  - 채팅 (on_chat)
  - 방송 상태 (on_broadcast_open, on_broadcast_close)
  - 후원 (on_donation)
  - 구독 (on_subscription)
  - 상단 고정 (on_pin, on_unpin)
  - 시스템 메시지 (on_system_message)
  - 메시지 관리
  - 그 외 (on_recent_chat, on_notice, on_blind, on_mission_pending, on_mission_approved, on_mission_rejected, on_mission_completed)
- 채팅 커맨드 생성 `@client.commands(name="커맨드이름")`
- 관리 (채팅 제한, 상단 고정 설정)

# Requirements

- Python 3.11+

# Installation

```commandline
pip install chzzk-sdk
```

# Example

```py
import asyncio

from chzzk import ChzzkChat, Chzzk
from chzzk.model import ChatMessage

from dotenv import dotenv_values


env = dotenv_values(".env")
chzzk = Chzzk().from_data(auth=env.get("AUTH"), session=env.get("SESSION"))
chat = ChzzkChat(chzzk=chzzk, prefix="!") # commands를 위한 prefix 지정


@chat.event
async def on_connect():
    print(f"on_connect")
    await chat.send_chat("on_connect test")


@chat.event
async def on_chat(message: ChatMessage):
    print(f"on_chat: {message.content}")

    
@chat.commands(name="공지")
async def notice(message: ChatMessage, *args):
    await chat.pin_message(message=message)


# name가 없으면, 함수이름이 커맨드 명령어 이름이 됨.
@chat.commands()
async def 공지해제(*args):
    await chat.unpin_message()


@chat.commands(name="덧셈")
async def plus(message: ChatMessage, *args):
    nums = list(map(lambda x: int(x), args))
    await chat.send_chat(f"덧셈 결과: {sum(nums)}")


async def main():
    channels = await chzzk.search.channels("갈대s")
    channel_id = channels[0].channel.channel_id
    await chat.run(channel_id=channel_id)

if __name__ == "__main__":
    asyncio.run(main())
```

> \+ 간단한 tts-bot 코드 : https://github.com/westreed/ChzzkBot

# References

- [jonghwanhyeon/python-chzzk](https://github.com/jonghwanhyeon/python-chzzk?tab=readme-ov-file)
- [kimcore/chzzk](https://github.com/kimcore/chzzk)
- [gunyu1019/chzzkpy](https://github.com/gunyu1019/chzzkpy)