Skip to main content

An interactive python interpreter plugin for nonebot2

Project description

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

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

nonebot-plugin-ipypreter-0.1.3.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page