GenroPy Web框架
项目描述
GenroPy
GenroPy是一个用于Python和Javascript的业务应用程序的Web框架。
安装
在文件夹 gnrpy 中,您可以执行2种不同的安装
sudo pip install .
这将安装框架到您的系统库或virtualenv中。
您还可以安装可选依赖项,提供了3个不同的配置文件
pgsql - 用于PostgreSQL数据库的使用
mysql - 用于MySQL数据库使用
开发者 - 将安装对Genropy开发有用的额外工具
注意:sqlite3驱动程序默认随基础安装安装,无需使用特定配置文件。
通过执行
sudo pip install .[profile_name]
例如
sudo pip install .[pgsql]
也支持多个配置文件
sudo pip install .[pgsql,developer]
为了避免系统安装,您可以运行
sudo pip install –editable .
这将链接到当前文件夹中的代码而不是安装文件。这对于开发工作非常有用。这代替了正在被弃用的‘’./setup.py develop’’命令。
要创建环境配置,您现在可以执行
gnr app initgenropy
配置文件是
/.gnr/environment.xml /.gnr/instanceconfig/default.xml /.gnr/siteconfig/default.xml
更改您的开发编辑 /.gnr/instanceconfig/default.xml
访问 [www.genropy.org](http://) 获取更多信息
沙盒
沙盒是您的第一个Genropy应用程序。
在 genropy_projects 文件夹内
运行db设置
gnr db setup sandbox
Genropy Web应用程序需要一个守护进程
在另一个终端运行
gnr web daemon
现在我们已准备好运行 sandbox 网站
gnr web wsgiserve sandbox
如果您想通过应用程序本身编辑教程文件,请使用 gnr web wsgiserve 与 remote_edit 选项
gnr web wsgiserve sandbox –remote_edit
许可证
代码许可在LGPL许可下
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
项目详情
下载文件
下载您平台的文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。
源代码分发
构建分发
genropy-24.10.2-py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 81428a4c58341550fff977e0e420d6e073a5fc273ce653555cbb27909047e461 |
|
MD5 | 93055fb423501b91ba1dee56ed813cd4 |
|
BLAKE2b-256 | ef762d35353b3aa50eb54acb9a961381c21f124a72c2640f2cc55bebb0933337 |