Skip to content

luoxt/pyweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyweb

Build Status Python

pyweb是一个异步非阻塞的web框架,基于tornado 框架,封装了定时器、网页代码编辑器,支持热更


环境

  • Python2.7 or 3
  • 生产环境建议使用CentOS+Python3+nginx+supervisor

依赖

  • tornado
  • psutil
  • pycryptodome
  • futures (py2才需要)
  • Linux上安装:pycryptodome Windows上安装:pycryptodomex

安装

  • 安装Python

    # CentOS6
    yum install python34 python34-devel -y
    
  • 安装依赖库

    pip install tornado
    pip install psutil
    pip install pycryptodome
    pip install futures
    

快速开始

  1. 运行服务端

    python main.py
    
  2. 用浏览器打开http://127.0.0.1:8000

    默认帐号密码都是admin