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.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for gp_flask_ext-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 51e0e92fa8fe15f58af8ddd8cdf6a0d9caaed70cc453a3b618ca0debba8d6feb
MD5 de1d1cfbeced689d0f46268cc87540e8
BLAKE2b-256 8b7f7932d8b70f75a67456a918a1c24867fecd85c40b8c324cc2ecd070675538

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