upland-api

Python API Wrapper for Upland.me's Public and Developers API


Keywords
api, api-wrapper, python, upland, uplandme, wrapper
License
MIT
Install
pip install upland-api==1.1.1

Documentation

Upland API Wrapper

upland-api is a Python wrapper for the Upland.me API endpoints. upland-api do currently only support the Developers API. upland-api works with Python >= 3.6

Installation

$ pip install upland-api

Usage

>>> from upland_api import UplandDevelopersAPI
>>> from upland_api import UplandPublicAPI
>>>
>>> UplandDevAPI = UplandDevelopersAPI(api_key="XXXX", logging=True)
>>> UplandPubAPI = UplandPublicAPI(api_key="XXXX", logging=True)

Available Resources

>> UplandDevAPI.auth
>> UplandDevAPI.buildings
>> UplandDevAPI.cities
>> UplandDevAPI.collections
>> UplandDevAPI.containers
>> UplandDevAPI.neighborhoods
>> UplandDevAPI.properties
>> UplandDevAPI.tracks
>> UplandDevAPI.treasures_history
>> UplandDevAPI.user


>> UplandPubAPI.feature
>> UplandPubAPI.settings

Examples

Get properties

  • Get properties in San Francisco (City ID: 1)
>>> r = UplandDevAPI.properties.get_properties(cityId=1)
>>> r

Get Neighborhoods

  • Get neighborhoods in San Francisco (City ID: 1)
>>> r = UplandDevAPI.neighborhoods.get_neighborhoods(cityId=1)
>>> r
  • Get all neighborhoods
>>> r = UplandDevAPI.neighborhoods.get_neighborhoods()
>>> r
  • Get neighborhoods by name
>>> r = UplandDevAPI.neighborhoods.get_neighborhoods(textSearch="Financial")
>>> r
  • Get neighborhoods by city and name
>>> r = UplandDevAPI.neighborhoods.get_neighborhoods(cityId=1, textSearch="Financial")
>>> r