Quickstart Guide to Generating Python Code With Temboo

DZone 's Guide to

Quickstart Guide to Generating Python Code With Temboo

Working with connected devices and need to connect them to APIs and web services? Here is how to generate some Python with Temboo.

· IoT Zone ·
Free Resource

Let's learn how to generate Temboo code to connect your devices and applications to web services and APIs. This tutorial will get you familiar with the basics in minutes.


  1. Make sure that Python 2.6 (or later) is installed on your system.
  2. Sign in to your Temboo account. If you don't already have one, you can register for free.
  3. Create a new .py file the directory where you'd like to build this Python sample project. In this example, we'll call the file TembooTest.py, though you can call it whatever you like.
  4. Download the Temboo Python SDK and extract the ZIP file to the same directory as your new .py file.
  5. Navigate to Google > Geocoding > GeocodeByAddress in the Temboo library.
  6. Select Python from the drop-down menu at the top of the page. Selecting your development platform
  7. Enter any address or ZIP code in the Address input field, e.g., 104 Franklin Street, New York City.Input for the Geocoding Choreo
  8. Click Generate Code to test the Choreo from our website. After a moment you'll see the data that Google sends back shown in the Output section.Output returned by the Google Geocoding API
  9. Scroll down to the code box on the Choreo page to find the generated code.
  10. Copy the code snippet and paste it into your TembooTest.py file.
  11. Now you're ready to run the script and see the output. Here's the command you need to run if you're executing this from the command line. Otherwise just run it from your IDE.
    python TembooTest.py
  12. Congratulations, you just ran your first Choreo! You should see the coordinates for the address you specified printed to the console.
apis, code generation, iot, python, temboo, tutorial

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}