pip install labstack
Sign up to get an API key
Create a file app.py with the following content:
fromlabstackimportClient, LabStackErrorclient=newClient('<API_KEY>')
geocode=client.geocode()
try:
response=geocode.address('eiffel tower')
print(response)
exceptAPIErroraserror:
print(error)From terminal run your app:
python app.py