用于开发wsgi应用程序的命令行接口。

wsgicli的Python项目详细描述


https://travis-ci.org/kobinpy/wsgicli.svg?branch=masterhttps://badge.fury.io/py/wsgicli.svg

用于开发wsgi应用程序的命令行接口。 此库具有以下功能。

在wsgiref中运行wsgi应用程序

  • 使用指定的主机和端口运行wsgi应用程序。
  • 提供静态文件。
  • 实时重新加载。
  • 逐行分析。
  • 验证您的wsgi应用程序是否符合pep3333规范。

运行python解释器

  • 支持的解释器有python(普通)、ipython、bpython、ptpython和ptpython。
  • 运行解释器时自动导入sqlalchemy和peewee模型。

命令

运行命令

概要
$ wsgicli run [FILEPATH][WSGIAPP][Options]
NoArgumentsEnvironment VariableDescription
1FILEPATH^{tt1}$The file path for your WSGI application.
2WSGIAPP^{tt2}$The variable name of your wsgi application object.
OptionsEnvironment VariableDefaultDescription
^{tt3}$ ^{tt4}$^{tt5}$^{tt6}$The hostname to bind to.
^{tt7}$ ^{tt8}$^{tt9}$8000The port to bind to.
^{tt10}$ / ^{tt11}$^{tt12}$FalseEnable live reloading.
^{tt13}$^{tt14}$1Interval time to check file changed for reloading (sec).
^{tt15}$ / ^{tt16}$^{tt17}$FalseEnable static file serving.
^{tt18}$^{tt19}$^{tt20}$URL path to static files.
^{tt21}$^{tt22}$^{tt23}$Directories to static files (multiple).
^{tt24}$ / ^{tt25}$^{tt26}$FalseEnable line profiler.
^{tt27}$^{tt28}$WSGIAPP(2nd arg)The filename profiled by line-profiler.
^{tt29}$ / ^{tt30}$^{tt31}$FalseValidating your WSGI application complying with PEP3333.
^{tt32}$Show help text.

示例

$ wsgicli run main.py app -p 8080 --reload
WSGICLI Run Command DEMO

shell命令

概要
$ wsgicli shell [FILEPATH][WSGIAPP][Options]
NoArgumentsEnvironment VariableDescription
1FILEPATH^{tt33}$The file path for your WSGI application.
2WSGIAPP^{tt2}$The variable name of your wsgi application object.
OptionsEnvironment VariableDefaultDescription
^{tt35}$ ^{tt36}$^{tt37}$^{tt38}$Supported interpreters are ipython, bpython, ptpython and ptipython.
^{tt39}$ / ^{tt40}$^{tt41}$TrueAutomatically import ORM table definition from your app.
^{tt32}$Show help text.

示例

$ wsgicli shell main.py app --interpreter ipython
WSGICLI Run Command DEMO

要求

  • python 3.3或更高版本
  • 单击
  • wsgi静态中间件
  • wsgi lineprof

许可证

这个软件是根据麻省理工学院的许可证授权的。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java什么会使单个任务执行器停止处理任务?   java如何实现累加器接口   java Spring数据JPA saveAll未执行批插入   java永久有效地存储键值对   节点中的JavaDES加密。js   用户界面我尝试使用eclipes从txt文件中读取整数值,但它给了我一些java错误。lang.NumberFormatException   用于州和首都猜谜游戏的java并行数组   使用jsp和sitemesh的java高级模板   JavaJahia6.6CMS编写自己的管理器   playframework Play Framework 2.5表单对象bean(Java)中的依赖项注入   需要java图像插值帮助吗   java Android mokito When(),thenReturn()不起作用   java Struts 2 ajaxplugin:更新div   java Firestore快照侦听器仅提供internet连接恢复后的最后一项   如何在Eclipse中从Java类中找到SpringXML定义   如何在本地启动Java Web Start   java运行testng。xml文件显示调用的方法错误   AntJava任务:从类路径jar中排除某些类   java如何为EclipseHono将keyClope设置为身份验证服务提供者(OIDC)?   java垃圾收集和反射