# wdpy-my **Repository Path**: iplayaball/wdpy-my ## Basic Information - **Project Name**: wdpy-my - **Description**: django 项目执行shell 命令实时返回信息到web页面 自己修改的开源项目 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2021-02-02 - **Last Updated**: 2024-12-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: my-tools ## README ## 说明 websocket+Django+python+paramiko实现web页面执行命令并实时输出 ## 环境依赖 | Project | Status | Description | |---------|--------|-------------| | python | 3.5.4 | 在这个版本以及以上都课可以 | | django | 2.1.4 | 大于2.0,小于2.1.5 | | paramiko | 2.4.2 | 无 | ## 注意事项 django版本不能是2.1.5,使用websocket,谷歌浏览器会报错 `WebSocket connection to 'ws://127.0.01:8000/echo_once/' failed: Error during WebSocket handshake: Unexpected response code: 400` ## 安装依赖 `pip3 install -r requirements.txt` 或者 `pip3 install paramiko dwebsocket django==2.1.4` ## 运行方式 使用Pycharm直接运行即可 或者使用命令 `python manage.py runserver` ## 效果图 执行脚本 ![Image text](https://github.com/py3study/wdpy/blob/master/%E6%95%88%E6%9E%9C%E5%9B%BE/%E6%89%A7%E8%A1%8C%E8%84%9A%E6%9C%AC.gif) 安装软件 ![Image text](https://github.com/py3study/wdpy/blob/master/%E6%95%88%E6%9E%9C%E5%9B%BE/%E5%AE%89%E8%A3%85%E8%BD%AF%E4%BB%B6.gif) Copyright (c) 2018-present, xiao You