Skip to content

m-vdb/algolia-places-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

API wrapper for Algolia Places API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages