Skip to content

Commit

Permalink
fix all python webframework
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonghuster committed Jun 8, 2022
1 parent d6e5824 commit f47885c
Show file tree
Hide file tree
Showing 28 changed files with 67 additions and 36 deletions.
7 changes: 6 additions & 1 deletion update.list
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
web-framework/python/flask
web-framework/python/django
web-framework/python/fastapi
web-framework/python/bottle
web-framework/python/pyramid
web-framework/python/tornado
web-framework/python/webpy
2 changes: 1 addition & 1 deletion web-framework/python/bottle/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-bottle
Provider:
- 阿里云
Version: 1.2.11
Version: 1.2.12
Description: Bottle是一个Python Web框架,整个框架只有一个文件,几十K,却自带了路径映射、模板、简单的数据库访问等web框架组件,确实是个可用的框架
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/bottle/src/code/bootstrap

This file was deleted.

2 changes: 1 addition & 1 deletion web-framework/python/bottle/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
name: "{{ functionName }}"
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: index.app
timeout: 60
triggers:
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/bottle/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
name: bottle
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: index.app
timeout: 60
triggers:
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/django/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-django
Provider:
- 阿里云
Version: 1.2.12
Version: 1.2.13
Description: Django是一个开放源代码的Web应用框架,由Python写成。采用了MTV的框架模式,即模型M,视图V和模版T
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/django/src/code/bootstrap

This file was deleted.

2 changes: 1 addition & 1 deletion web-framework/python/django/src/code/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
asgiref==3.3.1
Django==3.1.7
pytz==2021.1
sqlparse==0.4.1
sqlparse==0.4.1
2 changes: 1 addition & 1 deletion web-framework/python/django/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
name: "{{ functionName }}"
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: app.application
timeout: 60
triggers:
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/django/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
name: django
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: app.application
timeout: 60
triggers:
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/fastapi/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-fastapi
Provider:
- 阿里云
Version: 1.2.11
Version: 1.2.12
Description: FastAPI是一个现代、快速(高性能)的 Web 框架,基于标准的 Python 语言编写
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/fastapi/src/code/bootstrap

This file was deleted.

6 changes: 6 additions & 0 deletions web-framework/python/fastapi/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ services:
codeUri: './code'
runtime: custom
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
triggers:
- name: httpTrigger
type: http
Expand Down
6 changes: 6 additions & 0 deletions web-framework/python/fastapi/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ services:
codeUri: './code'
runtime: custom
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
triggers:
- name: httpTrigger
type: http
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/pyramid/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-pyramid
Provider:
- 阿里云
Version: 1.2.11
Version: 1.2.12
Description: Pyramid是一个小型,快速的Python web framework.,是Pylons Project的一部分,采用的授权协议是BSD-like license
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/pyramid/src/code/bootstrap

This file was deleted.

2 changes: 1 addition & 1 deletion web-framework/python/pyramid/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ services:
name: "{{ functionName }}"
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: index.app
timeout: 60
triggers:
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/pyramid/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ services:
name: pyramid
description: 'Serverless Devs Web Framework Function'
codeUri: './code'
runtime: python3
runtime: python3.9
handler: index.app
timeout: 60
triggers:
Expand Down
10 changes: 5 additions & 5 deletions web-framework/python/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<p align="center"><b> 中文 | <a href="./readme_en.md"> English </a> </b></p>

- [Bottle [python3]](./bottle/src)
- [Django [python3]](./django/src)
- [Flask [python3]](./flask/src)
- [Bottle [python3.9]](./bottle/src)
- [Django [python3.9]](./django/src)
- [Flask [python3.9]](./flask/src)
- [FastAPI [custom]](./fastapi/src)
- [Pyramid [python3]](./pyramid/src)
- [Pyramid [python3.9]](./pyramid/src)
- [Tornado [custom]](./tornado/src)
- [Webpy [python3]](./webpy/src)
- [Webpy [custom]](./webpy/src)
10 changes: 5 additions & 5 deletions web-framework/python/readme_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ Common Python framework cases:

<p align="center"><b> <a href="./readme.md"> 中文 </a> | English </b></p>

- [Bottle [python3]](./bottle/src)
- [Django [python3]](./django/src)
- [Flask [python3]](./flask/src)
- [Bottle [python3.9]](./bottle/src)
- [Django [python3.9]](./django/src)
- [Flask [python3.9]](./flask/src)
- [FastAPI [custom]](./fastapi/src)
- [Pyramid [python3]](./pyramid/src)
- [Pyramid [python3.9]](./pyramid/src)
- [Tornado [custom]](./tornado/src)
- [Webpy [python3]](./webpy/src)
- [Webpy [custom]](./webpy/src)
2 changes: 1 addition & 1 deletion web-framework/python/tornado/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-tornado
Provider:
- 阿里云
Version: 1.2.17
Version: 1.2.18
Description: Tornado是一种 Web 服务器软件的开源版本。Tornado 和主流Web 服务器框架(包括大多数 Python 的框架)有着明显的区别:它是非阻塞式服务器,而且速度相当快
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/tornado/src/code/bootstrap

This file was deleted.

6 changes: 6 additions & 0 deletions web-framework/python/tornado/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ services:
codeUri: './code'
runtime: custom
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
triggers:
- name: httpTrigger
type: http
Expand Down
6 changes: 6 additions & 0 deletions web-framework/python/tornado/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ services:
codeUri: './code'
runtime: custom
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
triggers:
- name: httpTrigger
type: http
Expand Down
2 changes: 1 addition & 1 deletion web-framework/python/webpy/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Type: Application
Name: start-webpy
Provider:
- 阿里云
Version: 1.2.17
Version: 1.2.18
Description: web.py 是一个轻量级Python web框架,它简单而且功能强大。web.py是一个开源项目
HomePage: https://github.com/devsapp/start-web-framework
Tags:
Expand Down
2 changes: 0 additions & 2 deletions web-framework/python/webpy/src/code/bootstrap

This file was deleted.

7 changes: 7 additions & 0 deletions web-framework/python/webpy/src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ services:
runtime: custom
caPort: 9000
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
- 9000
triggers:
- name: httpTrigger
type: http
Expand Down
7 changes: 7 additions & 0 deletions web-framework/python/webpy/src/s_en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ services:
runtime: custom
caPort: 9000
timeout: 60
customRuntimeConfig:
command:
- python
args:
- -u
- index.py
- 9000
triggers:
- name: httpTrigger
type: http
Expand Down

0 comments on commit f47885c

Please sign in to comment.