Python Quickstart
Getting started with the Python Sift client library
Credentials
Before starting this section be sure to retrieve your API key and the appropriate Sift URL for your provisioned environment. Instructions on how to retrieve the API key and URL and can be found in the authentication section of the documentation.
To connect to Sift's gRPC API using Python we will use sift-stack-py.
-
Inside of new
main.py
installsift-stack-py
by running the following command:Release Candidate
Note that at the time of writing this, the service we will use for this example is not yet available on the current stable version. To get the most recent stable version:
-
With the dependencies installed create a Python script with the following contents:
-
Execute the program from your commandline with the
SIFT_URI
andSIFT_API_KEY
environment variables from the authentication page:If everything was setup correctly you should see the following printed to your standard output: