Web2py

免费的开源全栈框架,用于快速开发快速、可扩展、安全且可移植的、数据库驱动的基于Web的应用程序。 用Python编写和编程(版本3和2.7)。(Free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications. Written and programmable in Python (version 3 and 2.7).)

  • Owner: web2py/web2py
  • Platform: Linux, Mac, Windows, Amazon Elastic Compute Cloud (EC2), Google App Engine
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Web2py是一个用Python语言编写的免费的开源Web框架,旨在敏捷快速的开发Web应用,具有快速、可扩展、安全以及可移植的数据库驱动的应用,遵循LGPLv3开源协议。

Web2py提供一站式的解决方案,整个开发过程都可以在浏览器上进行,提供了Web版的在线开发,HTML模版编写,静态文件的上传,数据库的编写的功能。其它的还有日志功能,以及一个自动化的admin接口。

什么是web2py?
  • 由计算机科学和软件工程专业人士和大学教授创建。
  • 始终向后兼容。自2007年版本1.0以来,我们没有破坏向后兼容性,我们保证将来不会破坏它。
  • 易于运行。它不需要安装,也不需要配置。
  • 在Windows,Mac,Unix /Linux,Google App Engine,Amazon EC2以及几乎所有通过Python 2.7 /3.5 /3.6 /pypy进行的虚拟主机上运行。
  • 通过CGI,FastCGI,WSGI,mod_proxy和/或mod_python运行Apache,Nginx,Lighttpd,Cherokee和几乎任何其他Web服务器。它可以嵌入第三方WSGI应用程序和中间件。
  • 与SQLite,PostgreSQL,MySQL,MSSQL,FireBird,Sybase,Oracle,IBM DB2,Informix,Ingres,MongoDB和Google App Engine进行会谈。
  • Secure It可防止最常见的漏洞类型,包括跨站点脚本,注入漏洞和恶意文件执行。
  • 实施良好的软件工程实践(模型 - 视图 - 控制器设计,服务器端表单验证,回发),使代码更具可读性,可扩展性和可维护性。
  • 讲多种协议HTML /XML,RSS /ATOM,RTF,PDF,JSON,AJAX,XML-RPC,CSV,REST,WIKI,Flash /AMF和关联数据(RDF)。
  • 包括支持SSL和流媒体的Web服务器,关系数据库,基于Web的集成开发环境和基于Web的管理界面,实时为您编写SQL的数据库抽象层,国际化支持,多种身份验证方法,基于角色的访问控制,错误记录和票务系统,用于可伸缩性的多个缓存方法,用于AJAX和效果的jQuery库,以及用于快速启动开发的脚手架应用程序。

Overview

Name With Ownerweb2py/web2py
Primary LanguagePython
Program languagePython (Language Count: 8)
PlatformLinux, Mac, Windows, Amazon Elastic Compute Cloud (EC2), Google App Engine
License:Other
Release Count92
Last Release Namev2.27.1 (Posted on )
First Release NameR-2.0.2 (Posted on )
Created At2008-11-07 06:08:58
Pushed At2024-04-27 22:32:41
Last Commit At2024-01-15 20:53:27
Stargazers Count2.1k
Watchers Count222
Fork Count881
Commits Count8.3k
Has Issues Enabled
Issues Count1062
Issue Open Count365
Pull Requests Count1187
Pull Requests Open Count5
Pull Requests Close Count229
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

Readme

web2py is a free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications.

It is written and programmable in Python. LGPLv3 License

Learn more at http://web2py.com

Google App Engine deployment

cp examples/app.yaml ./
cp handlers/gaehandler.py ./

Then edit ./app.yaml and replace "yourappname" with yourappname.

Important reminder about this GIT repo

An important part of web2py is the Database Abstraction Layer (DAL). In early 2015 this was decoupled into a separate code-base (PyDAL). In terms of git, it is a sub-module of the main repository.

The use of a sub-module requires a one-time use of the --recursive flag for git clone if you are cloning web2py from scratch.

git clone --recursive https://github.com/web2py/web2py.git

If you have an existing repository, the commands below need to be executed at least once:

git submodule update --init --recursive

If you have a folder gluon/dal you must remove it:

rm -r gluon/dal

PyDAL uses a separate stable release cycle to the rest of web2py. PyDAL releases will use a date-naming scheme similar to Ubuntu. Issues related to PyDAL should be reported to its separate repository.

Documentation (readthedocs.org)

Docs Status

Tests

Build Status
MS Build Status
Coverage Status

Installation Instructions

To start web2py there is NO NEED to install it. Just unzip and do:

python web2py.py

That's it!!!

web2py directory structure

project/
    README
    LICENSE
    VERSION                    > this web2py version
    web2py.py                  > the startup script
    anyserver.py               > to run with third party servers
    ...                        > other handlers and example files
    gluon/                     > the core libraries
        packages/              > web2py submodules
          dal/
        contrib/               > third party libraries
        tests/                 > unittests
    applications/              > are the apps
        admin/                 > web based IDE
            ...
        examples/              > examples, docs, links
            ...
        welcome/               > the scaffolding app (they all copy it)
            ABOUT
            LICENSE
            models/
            views/
            controllers/
            sessions/
            errors/
            cache/
            static/
            uploads/
            modules/
            cron/
            tests/
        ...                    > your own apps
    examples/                  > example config files, mv .. and customize
    extras/                    > other files which are required for building web2py
    scripts/                   > utility and installation scripts
    handlers/
        wsgihandler.py         > handler to connect to WSGI
        ...                    > handlers for Fast-CGI, SCGI, Gevent, etc
    site-packages/             > additional optional modules
    logs/                      > log files will go in there
    deposit/                   > a place where web2py stores apps temporarily

Issues?

Report issues at https://github.com/web2py/web2py/issues

To the top