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.3-py3-none-any.whl
.
File metadata
- Download URL: gp_flask_ext-0.0.3-py3-none-any.whl
- Upload date:
- Size: 16.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 | 51e0e92fa8fe15f58af8ddd8cdf6a0d9caaed70cc453a3b618ca0debba8d6feb |
|
MD5 | de1d1cfbeced689d0f46268cc87540e8 |
|
BLAKE2b-256 | 8b7f7932d8b70f75a67456a918a1c24867fecd85c40b8c324cc2ecd070675538 |