API wrapper for the Isogeo REST API
Project description
Isogeo API Python SDK
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 and the extension requests-oauthlib
.
Documentation
Usage in a nutshell
python -m pip install --user isogeo-pysdk
# or using pipenv
python -m 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 query parameters: ", search.query)
print("Total count of metadatas shared: ", search.total)
print("Count of resources got by request: {}\n".format(len(search.results)))
# 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:
python -m pip install --upgrade -r tests/requirements_test.txt
python -m pytest
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file isogeo_pysdk-3.8.5.tar.gz
.
File metadata
- Download URL: isogeo_pysdk-3.8.5.tar.gz
- Upload date:
- Size: 168.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8a7fc52dd413a4520659761016600aa8b549e092c3632dd4cd573319794d1b4 |
|
MD5 | dfe517cb121ac89c01cee43151880116 |
|
BLAKE2b-256 | c004644139ab092e2363041e038af513e4860c74e6c13454631ff9f41899fffc |
File details
Details for the file isogeo_pysdk-3.8.5-py3-none-any.whl
.
File metadata
- Download URL: isogeo_pysdk-3.8.5-py3-none-any.whl
- Upload date:
- Size: 222.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a5f56eb039c965ac9f429c72bcde79424f59d29be41989e2ee0170757d2f68a |
|
MD5 | 7f2a3846c404808e86afb8ee9dfc6502 |
|
BLAKE2b-256 | f09c558383a143553fad1bdee4df75a209796457e5409ca9db42e7bf14dac6dd |