Skip to main content

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

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

upland-api-1.1.1.tar.gz (10.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page