Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.09 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.09 KB

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