文件名称:flask-gsa:Google OAuth2客户端库的简单包装
文件大小:11KB
文件格式:ZIP
更新时间:2024-06-08 20:04:24
Python
烧瓶GSA Flask扩展,用于与进行交互。 入门 要求 Python 2.6以上 的OpenSSL 安装 Flask-GSA可以通过pip安装: $ pip install Flask-GSA 基本用法 最小样本应用程序: from flask import Flask from flask_gsa import GoogleServiceAccount app = Flask ( __name__ ) # Create a service account object and assign a config variable prefix analytics_gsa = GoogleServiceAccount ( 'ANALYTICS_GSA' ) # Set up the service account settings app . config [ 'ANALYTICS
【文件预览】:
flask-gsa-master
----MANIFEST.in(90B)
----.gitattributes(35B)
----CHANGES.md(97B)
----LICENSE.txt(1KB)
----requirements.txt(29B)
----CONTRIBUTING.md(787B)
----.travis.yml(322B)
----genkey.sh(654B)
----setup.py(1KB)
----README.md(3KB)
----Makefile(6KB)
----tests()
--------compat.py(140B)
--------__init__.py(0B)
--------conftest.py(446B)
--------test_flask_gsa.py(3KB)
----flask_gsa()
--------__init__.py(2KB)
----.gitignore(443B)
----.coveragerc(52B)