用于生成烧瓶支架和样板的实用程序。

spill的Python项目详细描述


溢出

用于生成烧瓶支架和样板的实用程序。很早 舞台。目的很简单:没有yaml或配置文件,只是 传几个论点。

spill foo -b api main -m user group --db-type sqlite --db-orm sqlalchemy

创建:

./foo/
    |-- .gitignore
    |-- config.py
    |-- manage.py
    |-- README.md
    |-- requirements.py
    |-- /app
        |-- __init__.py
        |-- models.py
        |-- /api
            |-- __init__.py
            |-- errors.py
            |-- forms.py
            |-- views.py
        |-- /main
            |-- __init__.py
            |-- errors.py
            |-- forms.py
            |-- views.py
    |-- /templates

使用量

usage: spill [-h] [-b BLUEPRINTS [BLUEPRINTS ...]] [-m MODELS [MODELS ...]]
             [--db-type [{sqlite,mysql,mongodb}]]
             [--db-orm [{sqlalchemy,mongoengine}]] [--no-forms]
             [--no-templates]
             [project]

Creates scaffolding and boilerplate for a Flask application.

positional arguments:
  project               Name of Flask project to spill. If no project
                        specified, will assume CWD is the project directory.

optional arguments:
  -h, --help            show this help message and exit
  -b BLUEPRINTS [BLUEPRINTS ...], --blueprints BLUEPRINTS [BLUEPRINTS ...]
                        A list of blueprints to create (Defaults: 'main' and
                        'api')
  -m MODELS [MODELS ...], --models MODELS [MODELS ...]
                        A list of model objects
  --db-type [{sqlite,mysql,mongodb}]
                        The type of database you will use
  --db-orm [{sqlalchemy,mongoengine}]
                        The ORM you will use
  --no-forms            No Flask-WTF forms
  --no-templates        No Jinja2 templates

当前使用/for python 2.7构建。

安装

pip install spill

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

推荐PyPI第三方库


热门话题
java如何在href中将struts2文本字段的值作为参数传递?   java检查对象属性是否为空的最佳方法是什么?   java通过Maven使用Junit类别运行Cucumber测试   java如何在selenium Webdriver(Mac)中使用Robot类上传多个文件?   如何用python绘制图形或将python转换为java和Matlab?   java Osgi捆绑包更新和ResourceBundle   java使用流api将流<@Nullable T>转换为流<@NonNull T>   java中EXCEL的平台无关连接字符串   JavaFX中的java表   java Jetty线程池和sun。HttpServer会话   JPA存储库bean的java Spring注入无法工作NullPointerException   java从另一个Kubernetes作业触发Kubernetes   我的java netbeans抽奖计划需要帮助吗   泛型中的java有界类型无法扩展另一个有界类型   如果混合使用全局构建和概要文件构建,java cxfcodegenplugin会生成错误代码   封装SQL平台之间差异的java策略?