/algolia-places-python

API wrapper for Algolia Places API

Primary LanguagePythonMIT LicenseMIT

algolia-places-python

API wrapper for Algolia Places API. This module only supports Python 3.

Build Status Coverage Status Pypi version

Installation

$ pip install aloglia-places-python

Usage

from algolia_places import AlgoliaPlacesClient


client = AlgoliaPlacesClient('<your app id>', '<your api key>')

# set defaults for all calls
client.defaults(language='en', countries=['us'], type='city')

# do a search
resp = client.search('San Diego')

# do a search and override defaults
resp = client.search('San Diego', type='address')

# access results
for hit in resp.hits:
  # do something with hit
  pass

How to

Publish on pypi:

$ python setup.py sdist upload