mongkok / arcgis-sdk

Python SDK for Arcgis API

Home Page:https://pypi.python.org/pypi/arcgis-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arcgis SDK

Pypi Wheel Build Status Codecov Code Climate

Python SDK for Arcgis API

Installation

Install from Pypi.

pip install arcgis-sdk

Quick start

Client

>>> import arcgis_sdk
>>> client = arcgis_sdk.ArcgisAPI('access_token')
>>> client.self()

Exceptions

>>> try:
...     client.add_item(
...         username='mongkok',
...         title='my item',
...         type='Web Mapping Application'
...     )
... except arcgis_sdk.ArcgisAPIError as err:
...     print(err.message)

Refresh the token

>>> client.refresh_token('client_id', 'refresh_token')

Tests

make test

About

Python SDK for Arcgis API

https://pypi.python.org/pypi/arcgis-sdk

License:MIT License


Languages

Language:Python 95.6%Language:Makefile 4.4%