diff --git a/update.list b/update.list index ec8de1494..753b7e433 100755 --- a/update.list +++ b/update.list @@ -1 +1,6 @@ -web-framework/python/flask \ No newline at end of file +web-framework/python/django +web-framework/python/fastapi +web-framework/python/bottle +web-framework/python/pyramid +web-framework/python/tornado +web-framework/python/webpy \ No newline at end of file diff --git a/web-framework/python/bottle/publish.yaml b/web-framework/python/bottle/publish.yaml index aea806906..9806a5bbe 100755 --- a/web-framework/python/bottle/publish.yaml +++ b/web-framework/python/bottle/publish.yaml @@ -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: diff --git a/web-framework/python/bottle/src/code/bootstrap b/web-framework/python/bottle/src/code/bootstrap deleted file mode 100755 index 8a7e32631..000000000 --- a/web-framework/python/bottle/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 index.py \ No newline at end of file diff --git a/web-framework/python/bottle/src/s.yaml b/web-framework/python/bottle/src/s.yaml index 2feebe0b8..cb4b9f716 100644 --- a/web-framework/python/bottle/src/s.yaml +++ b/web-framework/python/bottle/src/s.yaml @@ -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: diff --git a/web-framework/python/bottle/src/s_en.yaml b/web-framework/python/bottle/src/s_en.yaml index 613251cb7..1d41edb86 100644 --- a/web-framework/python/bottle/src/s_en.yaml +++ b/web-framework/python/bottle/src/s_en.yaml @@ -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: diff --git a/web-framework/python/django/publish.yaml b/web-framework/python/django/publish.yaml index cd33f14ca..b768d7655 100755 --- a/web-framework/python/django/publish.yaml +++ b/web-framework/python/django/publish.yaml @@ -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: diff --git a/web-framework/python/django/src/code/bootstrap b/web-framework/python/django/src/code/bootstrap deleted file mode 100755 index 5196552a9..000000000 --- a/web-framework/python/django/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 manage.py runserver 0.0.0.0:9000 \ No newline at end of file diff --git a/web-framework/python/django/src/code/requirements.txt b/web-framework/python/django/src/code/requirements.txt index 8d06e360c..696d74a9b 100644 --- a/web-framework/python/django/src/code/requirements.txt +++ b/web-framework/python/django/src/code/requirements.txt @@ -1,4 +1,4 @@ asgiref==3.3.1 Django==3.1.7 pytz==2021.1 -sqlparse==0.4.1 +sqlparse==0.4.1 \ No newline at end of file diff --git a/web-framework/python/django/src/s.yaml b/web-framework/python/django/src/s.yaml index d7b811edb..a134b58d2 100644 --- a/web-framework/python/django/src/s.yaml +++ b/web-framework/python/django/src/s.yaml @@ -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: diff --git a/web-framework/python/django/src/s_en.yaml b/web-framework/python/django/src/s_en.yaml index 10e7a9a60..7d9d54bd3 100644 --- a/web-framework/python/django/src/s_en.yaml +++ b/web-framework/python/django/src/s_en.yaml @@ -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: diff --git a/web-framework/python/fastapi/publish.yaml b/web-framework/python/fastapi/publish.yaml index df208f0cd..de8a4dbe2 100644 --- a/web-framework/python/fastapi/publish.yaml +++ b/web-framework/python/fastapi/publish.yaml @@ -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: diff --git a/web-framework/python/fastapi/src/code/bootstrap b/web-framework/python/fastapi/src/code/bootstrap deleted file mode 100644 index 8a7e32631..000000000 --- a/web-framework/python/fastapi/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 index.py \ No newline at end of file diff --git a/web-framework/python/fastapi/src/s.yaml b/web-framework/python/fastapi/src/s.yaml index 0b8e71788..c451eb57b 100644 --- a/web-framework/python/fastapi/src/s.yaml +++ b/web-framework/python/fastapi/src/s.yaml @@ -52,6 +52,12 @@ services: codeUri: './code' runtime: custom timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py triggers: - name: httpTrigger type: http diff --git a/web-framework/python/fastapi/src/s_en.yaml b/web-framework/python/fastapi/src/s_en.yaml index 32aaa81cf..b7a675f51 100644 --- a/web-framework/python/fastapi/src/s_en.yaml +++ b/web-framework/python/fastapi/src/s_en.yaml @@ -54,6 +54,12 @@ services: codeUri: './code' runtime: custom timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py triggers: - name: httpTrigger type: http diff --git a/web-framework/python/pyramid/publish.yaml b/web-framework/python/pyramid/publish.yaml index 5a9316fd0..a90e9e1d2 100755 --- a/web-framework/python/pyramid/publish.yaml +++ b/web-framework/python/pyramid/publish.yaml @@ -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: diff --git a/web-framework/python/pyramid/src/code/bootstrap b/web-framework/python/pyramid/src/code/bootstrap deleted file mode 100755 index 8a7e32631..000000000 --- a/web-framework/python/pyramid/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 index.py \ No newline at end of file diff --git a/web-framework/python/pyramid/src/s.yaml b/web-framework/python/pyramid/src/s.yaml index 2feebe0b8..cb4b9f716 100644 --- a/web-framework/python/pyramid/src/s.yaml +++ b/web-framework/python/pyramid/src/s.yaml @@ -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: diff --git a/web-framework/python/pyramid/src/s_en.yaml b/web-framework/python/pyramid/src/s_en.yaml index 1100cda78..f77973fbc 100644 --- a/web-framework/python/pyramid/src/s_en.yaml +++ b/web-framework/python/pyramid/src/s_en.yaml @@ -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: diff --git a/web-framework/python/readme.md b/web-framework/python/readme.md index 9c292ac2f..72d909ed6 100644 --- a/web-framework/python/readme.md +++ b/web-framework/python/readme.md @@ -2,10 +2,10 @@

中文 | English

-- [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) \ No newline at end of file +- [Webpy [custom]](./webpy/src) \ No newline at end of file diff --git a/web-framework/python/readme_en.md b/web-framework/python/readme_en.md index 502bdfd6a..89a5c48f4 100644 --- a/web-framework/python/readme_en.md +++ b/web-framework/python/readme_en.md @@ -2,10 +2,10 @@ Common Python framework cases:

中文 | English

-- [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) \ No newline at end of file +- [Webpy [custom]](./webpy/src) \ No newline at end of file diff --git a/web-framework/python/tornado/publish.yaml b/web-framework/python/tornado/publish.yaml index ac1f9be85..5435c0adc 100755 --- a/web-framework/python/tornado/publish.yaml +++ b/web-framework/python/tornado/publish.yaml @@ -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: diff --git a/web-framework/python/tornado/src/code/bootstrap b/web-framework/python/tornado/src/code/bootstrap deleted file mode 100755 index 8a7e32631..000000000 --- a/web-framework/python/tornado/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 index.py \ No newline at end of file diff --git a/web-framework/python/tornado/src/s.yaml b/web-framework/python/tornado/src/s.yaml index 0b8e71788..c451eb57b 100644 --- a/web-framework/python/tornado/src/s.yaml +++ b/web-framework/python/tornado/src/s.yaml @@ -52,6 +52,12 @@ services: codeUri: './code' runtime: custom timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py triggers: - name: httpTrigger type: http diff --git a/web-framework/python/tornado/src/s_en.yaml b/web-framework/python/tornado/src/s_en.yaml index bf2620084..c178025be 100644 --- a/web-framework/python/tornado/src/s_en.yaml +++ b/web-framework/python/tornado/src/s_en.yaml @@ -54,6 +54,12 @@ services: codeUri: './code' runtime: custom timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py triggers: - name: httpTrigger type: http diff --git a/web-framework/python/webpy/publish.yaml b/web-framework/python/webpy/publish.yaml index be90e6474..8e562207b 100755 --- a/web-framework/python/webpy/publish.yaml +++ b/web-framework/python/webpy/publish.yaml @@ -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: diff --git a/web-framework/python/webpy/src/code/bootstrap b/web-framework/python/webpy/src/code/bootstrap deleted file mode 100755 index 2584653e1..000000000 --- a/web-framework/python/webpy/src/code/bootstrap +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -python3 index.py 9000 \ No newline at end of file diff --git a/web-framework/python/webpy/src/s.yaml b/web-framework/python/webpy/src/s.yaml index e03a2453c..ba1401613 100644 --- a/web-framework/python/webpy/src/s.yaml +++ b/web-framework/python/webpy/src/s.yaml @@ -53,6 +53,13 @@ services: runtime: custom caPort: 9000 timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py + - 9000 triggers: - name: httpTrigger type: http diff --git a/web-framework/python/webpy/src/s_en.yaml b/web-framework/python/webpy/src/s_en.yaml index d5652bdd6..a95a222e7 100644 --- a/web-framework/python/webpy/src/s_en.yaml +++ b/web-framework/python/webpy/src/s_en.yaml @@ -55,6 +55,13 @@ services: runtime: custom caPort: 9000 timeout: 60 + customRuntimeConfig: + command: + - python + args: + - -u + - index.py + - 9000 triggers: - name: httpTrigger type: http