Skip to main content

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


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

gp_flask_ext-0.0.2-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file gp_flask_ext-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gp_flask_ext-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2f7f91c672f7fe76ff1c8ba887e7557c348c47dc8ada0568b8b3b7feb23c51d5
MD5 19643ed7abc04b464f550f9ae73bcd20
BLAKE2b-256 9d52fccce3316d8e974ab6d76eafd4babff090792e907fb7f0a35ad3cc73286f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page