Skip to content
Python minimalist SDK to use Isogeo REST API
Python PowerShell
Branch: master
Clone or download
Guts Merge #76 - Auth - Handle oAuth2 Client Credentials Grant flow (Backe…
…nd Application Client)

Auth - Handle oAuth2 Client Credentials Grant flow (Backend Application Client)
Latest commit 620d765 Aug 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode apply formatting for py37 Aug 5, 2019
docs
isogeo_pysdk apply new env vars names Aug 13, 2019
tests apply new env vars names Aug 13, 2019
.coveragerc ci - add publish coverage results #33 Feb 14, 2019
.env.example update env template Aug 13, 2019
.gitignore ignore incremental logs Jul 29, 2019
.gitmodules Revert "change submodule path" Apr 8, 2019
.pre-commit-config.yaml
.pypirc remove pypitest Apr 14, 2019
.readthedocs.yml add RT config file and exclude submodule Apr 8, 2019
.travis.yml fix imports and tests Apr 29, 2019
LICENSE switch to LGPL3 Aug 12, 2019
MANIFEST Modern packaging (#39) Apr 10, 2019
Pipfile use intersphinx to make references to other docs Aug 13, 2019
Pipfile.lock use intersphinx to make references to other docs Aug 13, 2019
README.md remove travis and codecov refs Jul 30, 2019
azure-pipelines.yml apply new env vars names Aug 13, 2019
codecov.yml restoring codecov report (#71) Aug 7, 2019
requirements.txt
setup.cfg name the module Aug 7, 2019
setup.py switching package metadata into a dedicated module __about__ Aug 12, 2019
tool_build_upload.ps1 target python 3.7 to code formatting Aug 9, 2019
tool_docs_build.ps1 minor changes on setup and tasks Jun 21, 2019
tool_test_coverage.ps1 name the module Aug 7, 2019

README.md

Isogeo API Python SDK

PyPI PyPI - Python Version

Build Status

Documentation Status Code style: black

A Python package to use Isogeo REST API.

Requirements

Isogeo API requires oAuth2 authentication. To obtain credentials, send us your request by email projects+api@isogeo.com.

Based on the well known requests package.

Documentation

Usage in a nutshell

pip install --user isogeo-pysdk
# using pipenv
pipenv install isogeo-pysdk

Quickstart

from isogeo_pysdk import Isogeo

# authenticate your client application
isogeo = Isogeo(client_id=app_id,
                client_secret=app_secret)

# get the token
isogeo.connect()

# search within catalogs shared to the application
search = isogeo.search()

# print some statements
print("Search __dict__ keys: ", search.keys())  # search response basic structure
print("Search query parameters: ", search.get('query'))  # search response query passed
print("Total count of metadatas shared: ", search.get("total"))  # total of available resources
print("Count of resources got by request: {}\n".format(len(search.get("results"))))  # total of resources returned by search request

# close the session when you finish
isogeo.close()

Samples are available in the source repository <https://github.com/isogeo/isogeo-api-py-minsdk/tree/master/isogeo_pysdk/samples>_.

Tests

Tests are performed for each published commit:

pip install --upgrade -r tests/requirements_test.txt
python -m unittest discover

Or using the included Powershell script:

.\tool_test_coverage.ps1

Build

To package and upload:

.\tool_build_upload.ps1

To build docs:

.\tool_docs_build.ps1
You can’t perform that action at this time.