Joenothing-lst / nonebot-plugin-ipypreter

基于 Nonebot2 开发的消息交互式 Python 解释器

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nonebot-plugin-ipypreter

pypi implementation wheel python license

功能

消息交互式 Python 解释器

可以在 Docker 内执行任何 Python 语句并返回结果

快速开始 Quickstart

注意

由于使用了 colon equal

使用前请保证python>=3.8

pip install nonebot-plugin-ipypreter

如果你使用的是nb-cli,此时bot.py会自动添加nonebot.load_plugin('nonebot-plugin-ipypreter')

若没有,请手动添加

docker pull python

请保证 docker images 包含python:latest

bot 指令

进入交互环境

python aliases=['python3']

查看历史输入

history

离开交互环境

exit aliases=['exit()', 'quit']

配置项 Env

PLUGIN_IPYPRETER_IMAGE: your_docker_image_tag

特别感谢

优化建议

如有优化建议请积极提交 issues 或者 pull requests

About

基于 Nonebot2 开发的消息交互式 Python 解释器

License:GNU General Public License v3.0


Languages

Language:Python 100.0%