Giter Site home page Giter Site logo

ttwshell / hobbit-core Goto Github PK

View Code? Open in Web Editor NEW
70.0 4.0 12.0 779 KB

A flask project generator.

Home Page: https://hobbit-core.readthedocs.io/zh/latest/

License: MIT License

Python 80.81% Shell 5.76% Jinja 13.43%
flask sqlalchemy marshmallow restful restful-webservices hobbit python

hobbit-core's People

Contributors

bigfang avatar dependabot[bot] avatar theott avatar ttwshell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hobbit-core's Issues

新手入坑,项目文档里有些疑问

1、

快速生成项目

使用 hobbit 命令自动生成你的flask项目:

hobbit --echo new -n demo -d . -p 5000 --celery # 建议试用 -t rivendell 新模版

这个 -t rivendell 又是啥?怎么理解和前面hobbit --echo new -n的关系?

2、

hobbit new

hobbite gen

的区别是啥?

3、

hobbit gen 命令可根据一个描叙models的csv文件,自动生成models.py、CRUD 的 API、unittest(目前仅支持rivendell模版)。hobbit create 命令可以生成一个csv文件,含有一些基本的例子。

hobbit --echo gen -n user -d /tmp/test -t rivendell --csv-path xx

结尾的xx 又代表啥?

有计划升级到flask 2.0吗

使用框架生成后,升级整体依赖到flask 2.1.3 报错了,信息如下
Traceback (most recent call last):
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\serving.py", line 335, in run_wsgi
execute(self.server.app)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\serving.py", line 322, in execute
application_iter = app(environ, start_response)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\flask\app.py", line 2091, in call
return self.wsgi_app(environ, start_response)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\flask\app.py", line 2080, in wsgi_app
return response(environ, start_response)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\wrappers\response.py", line 629, in call
app_iter, status, headers = self.get_wsgi_response(environ)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\wrappers\response.py", line 615, in get_wsgi_response
headers = self.get_wsgi_headers(environ)
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\wrappers\response.py", line 506, in get_wsgi_headers
status = self.status_code
File "E:\GitRepo\flask-demo\venv\lib\site-packages\werkzeug\sansio\response.py", line 147, in status_code
return self._status_code
AttributeError: 'Response' object has no attribute '_status_code'

对services 的一些疑问

使用项目文档自动生成的项目,service里 option.py 是示例文件, 这个目录是需要自己写增删改查?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.