An message-interactive python interpreter plugin for nonebot2
Project description
nonebot-plugin-ipypreter
- 基于 nonebot2
功能
消息交互式 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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file nonebot-plugin-ipypreter-0.1.5.tar.gz
.
File metadata
- Download URL: nonebot-plugin-ipypreter-0.1.5.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30205fb47b7c8c742d539594412426666553e645c36f1123dc81b2c8968e2e87 |
|
MD5 | 21caa452a615276d44433c1c78adac30 |
|
BLAKE2b-256 | 4753dcfac22744270c4c685ae6540e010f1cb072d94ec4f31a9b2e97bff6b88f |