Skip to content

Commit

Permalink
new flask extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
leonwenbin committed Dec 11, 2023
1 parent a6e9327 commit e97bfe6
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/flask-admin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: flask-admin

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-admin flask
- name: Test initialization
run: |
python -c "from flask import Flask; app = Flask(__name__); from flask_admin import Admin; Admin(app)"
29 changes: 29 additions & 0 deletions .github/workflows/flask-apscheduler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

name: flask-apscheduler

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-apscheduler flask
- name: Test initialization
run: |
python -c "from flask import Flask; app = Flask(__name__); from flask_apscheduler import APScheduler; APScheduler(app)"
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ 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) |
| -------------------- | --------------- | ----------- | ---------- | ------------------------------------------------- |
| [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) |
| [viniciuschiele/flask-apscheduler](https://github.com/viniciuschiele/flask-apscheduler) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-apscheduler) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/viniciuschiele/flask-apscheduler) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-apscheduler?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-apscheduler.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-apscheduler.yml) |
| [miracle2k/flask-assets](https://github.com/miracle2k/flask-assets) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-assets) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/miracle2k/flask-assets) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-assets?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-assets.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-assets.yml) |
| [helloflask/flask-avatars](https://github.com/helloflask/flask-avatars) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-avatars) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/helloflask/flask-avatars) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-avatars?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-avatars.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-avatars.yml) |
| [python-babel/flask-babel](https://github.com/python-babel/flask-babel) | ![PyPI - Version](https://img.shields.io/pypi/v/flask-babel) | ![GitHub last commit (branch)](https://img.shields.io/github/last-commit/python-babel/flask-babel) | ![PyPI - Downloads](https://img.shields.io/pypi/dm/flask-babel?color=darkgrey) | [![build](https://github.com/greyli/flask-extension-status/actions/workflows/flask-babel.yml/badge.svg)](https://github.com/greyli/flask-extension-status/actions/workflows/flask-babel.yml) |
Expand Down
6 changes: 6 additions & 0 deletions extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,9 @@ flask-jwt-extended:
flask-bcrypt:
repo: maxcountryman/flask-bcrypt
init_string: 'from flask_bcrypt import Bcrypt; Bcrypt(app)'
flask-admin:
repo: flask-admin/flask-admin
init_string: 'from flask_admin import Admin; Admin(app)'
flask-apscheduler:
repo: viniciuschiele/flask-apscheduler
init_string: 'from flask_apscheduler import APScheduler; APScheduler(app)'

0 comments on commit e97bfe6

Please sign in to comment.