Skip to content

Commit

Permalink
Add new extensions (#15)
Browse files Browse the repository at this point in the history
- flask-helmet
- Flask-Magql
- Flask-FomanticUI
  • Loading branch information
Leonwenbin committed Dec 22, 2023
1 parent 7d5814e commit 94374c1
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/Flask-FomanticUI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Flask-FomanticUI

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Flask-FomanticUI flask
- name: Test initialization
run: |
python -c "from flask import Flask; app = Flask(__name__); from flask_fomanticui import FomanticUI; FomanticUI(app)"
29 changes: 29 additions & 0 deletions .github/workflows/Flask-Magql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: Flask-Magql

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Flask-Magql flask
- name: Test initialization
run: |
python -c "from flask import Flask; app = Flask(__name__); import magql; from flask_magql import MagqlExtension; MagqlExtension(magql.Schema())"
29 changes: 29 additions & 0 deletions .github/workflows/flask-helmet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: flask-helmet

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flask-helmet flask
- name: Test initialization
run: |
python -c "from flask import Flask; app = Flask(__name__); from flask_helmet import FlaskHelmet; FlaskHelmet(app)"
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ For a project that is abandoned/dead, we will remove it from the table and list

| Extension Repository | Latest version | Last Commit | Downloads | Build with latest Flask (3.x) and Python (3.12.x) |
| -------------------- | --------------- | ----------- | ---------- | ------------------------------------------------- |
| [juniors90/Flask-FomanticUI](https://github.com/juniors90/Flask-FomanticUI) | ![PyPI - Version](https://img.shields.io/pypi/v/Flask-FomanticUI) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/juniors90/Flask-FomanticUI) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/Flask-FomanticUI?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/Flask-FomanticUI.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/Flask-FomanticUI.yml) |
| [autoinvent/flask-magql](https://github.com/autoinvent/flask-magql) | ![PyPI - Version](https://img.shields.io/pypi/v/Flask-Magql) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/autoinvent/flask-magql) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/Flask-Magql?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/Flask-Magql.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/Flask-Magql.yml) |
| [helloflask/bootstrap-flask](https://github.com/helloflask/bootstrap-flask) | ![PyPI - Version](https://img.shields.io/pypi/v/bootstrap-flask) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/helloflask/bootstrap-flask) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/bootstrap-flask?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/bootstrap-flask.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/bootstrap-flask.yml) |
| [flask-admin/flask-admin](https://github.com/flask-admin/flask-admin) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-admin) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/flask-admin/flask-admin) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-admin?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-admin.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-admin.yml) |
| [jmcarp/flask-apispec](https://github.com/jmcarp/flask-apispec) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-apispec) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/jmcarp/flask-apispec) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-apispec?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-apispec.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-apispec.yml) |
Expand All @@ -32,6 +34,7 @@ For a project that is abandoned/dead, we will remove it from the table and list
| [helloflask/flask-ckeditor](https://github.com/helloflask/flask-ckeditor) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-ckeditor) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/helloflask/flask-ckeditor) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-ckeditor?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-ckeditor.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-ckeditor.yml) |
| [corydolphin/flask-cors](https://github.com/corydolphin/flask-cors) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-cors) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/corydolphin/flask-cors) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-cors?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-cors.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-cors.yml) |
| [pallets-eco/flask-debugtoolbar](https://github.com/pallets-eco/flask-debugtoolbar) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-debugtoolbar) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/pallets-eco/flask-debugtoolbar) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-debugtoolbar?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-debugtoolbar.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-debugtoolbar.yml) |
| [dillibabukadati/flask-helmet](https://github.com/dillibabukadati/flask-helmet) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-helmet) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/dillibabukadati/flask-helmet) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-helmet?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-helmet.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-helmet.yml) |
| [nathancahill/flask-inputs](https://github.com/nathancahill/flask-inputs) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-inputs) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/nathancahill/flask-inputs) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-inputs?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-inputs.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-inputs.yml) |
| [vimalloc/flask-jwt-extended](https://github.com/vimalloc/flask-jwt-extended) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-jwt-extended) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/vimalloc/flask-jwt-extended) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-jwt-extended?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-jwt-extended.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-jwt-extended.yml) |
| [alisaifee/flask-limiter](https://github.com/alisaifee/flask-limiter) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-limiter) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/alisaifee/flask-limiter) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-limiter?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-limiter.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-limiter.yml) |
Expand Down
9 changes: 9 additions & 0 deletions extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,12 @@ flask-qrcode:
flask-security:
repo: mattupstate/flask-security
init_string: 'from flask_security import Security; Security(app)'
flask-helmet:
repo: dillibabukadati/flask-helmet
init_string: 'from flask_helmet import FlaskHelmet; FlaskHelmet(app)'
Flask-Magql:
repo: autoinvent/flask-magql
init_string: 'import magql; from flask_magql import MagqlExtension; MagqlExtension(magql.Schema())'
Flask-FomanticUI:
repo: juniors90/Flask-FomanticUI
init_string: 'from flask_fomanticui import FomanticUI; FomanticUI(app)'

0 comments on commit 94374c1

Please sign in to comment.