项目作者: isogeo

项目描述 :
Sample project to illustrate how to authentifiy to Isogeo API with Client Credentials Grant flow and build a basic search form
高级语言: Python
项目地址: git://github.com/isogeo/api-sample-oauth2-ccg-py.git
创建时间: 2019-07-24T13:58:54Z
项目社区:https://github.com/isogeo/api-sample-oauth2-ccg-py

开源协议:GNU Lesser General Public License v3.0

下载


Isogeo User oAuth2 example - Desktop Search Form

DO NOT USE THIS CODE IN PRODUCTION

Usage

Run this sample:

  1. Clone/download this repository
  2. Open a prompt (bash, powershell…),
  3. Move into this directory
  4. Paste your client_secrets.json file. If you don’t have, ask one to Isogeo!

With your installed Python

  1. Create a virtualenv (PowerShell: py -3 -m venv env), then activate it

  2. Install prerequisites:

    1. python -m pip install --upgrade -r requirements.txt
  3. Run it:

    1. # using autocompletion widgets and async/await
    2. python isogeo_tk_search_form_py3_async.py
    3. # using 'pure' ttk library
    4. python isogeo_tk_search_form_pure.py