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

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第三方库


热门话题
JBossJava进程内存持续增长   Java postincrement(++)在作为参数传递时表现不符合预期   TableView列的java编辑值   java根据springboot@Scheduled注释使用的条件动态修改调度程序计时   java无法将jsp表单值设置为类变量   java ParseQuery from字段未保存   java为什么日历返回月份。是否获取(Calendar.MONTH)上个月而不是当前月?   java无法获取api密钥的md5指纹   java通用DAO和嵌套属性支持   javapomi的版本已经改变了。从OJDBC6到OJDBC8的xml。使用新版本OJDBC8执行某些查询时出现锁定问题   java IntelliJ颜色方案定制   java从第三方读取Linux存储库   amazon s3在AWS s3 Java SDK中设置对象元数据   java一对多映射比