flask extension for gp
Project description
gp-flask-ext
开放项目, 用于扩展flask框架.
构建
# Build wheel
pip install build
python -m build --wheel .
# Upload to pypi
pip install twine
twine upload dist/*
安装
pip install gp-flask-ext
使用
from flask import Flask
from gp_flask_ext import flask_gitlab_oauth, flask_nocodb
app = Flask(__name__)
flask_nocodb.init(app {
'url': 'http://localhost:8080',
'api_token': 'your-api-token',
'project_id': 'your-project-id'
})
flask_gitlab_oauth.init(app, {
'client_id': 'your-client-id',
'client_secret': 'your-client-secret',
'redirect_uri': 'http://localhost:5000/oauth/callback',
'gitlab_url': 'https://gitlab.com',
'scope': 'api'
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file gp_flask_ext-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: gp_flask_ext-0.0.2-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f7f91c672f7fe76ff1c8ba887e7557c348c47dc8ada0568b8b3b7feb23c51d5 |
|
MD5 | 19643ed7abc04b464f550f9ae73bcd20 |
|
BLAKE2b-256 | 9d52fccce3316d8e974ab6d76eafd4babff090792e907fb7f0a35ad3cc73286f |