skip to navigation
skip to content

Not Logged In

Sift 0.1.0

Python bindings for Sift Science's REST event API

Latest Version: 1.1.2.1

Bindings for Sift Science’s REST API.

Installation

Get the package from pip:

pip install sift

Usage

Here’s an example:

import sift.Client

api_key = 'XXXXXXXXXXXXXX'  # TODO
sift_client = sift.Client(api_key)

# Track a transaction event -- note this is blocking
sift_client.track('$transaction', {
    '$user_id': '23056',
    '$user_email': 'buyer@gmail.com',
    '$seller_user_id': '2371',
    '$seller_user_email': 'seller@gmail.com',
    '$transaction_id': '573050',
    '$currency_code': 'USD',
    '$amount': 15230000,
    '$time': 1327604222,
    'trip_time': 930,
    'distance_traveled': 5.26,
})

0.0.1 (2013-01-08)

  • Just the Python REST client itself
 
File Type Py Version Uploaded on Size
Sift-0.1.0.tar.gz (md5) Source 2013-01-09 2KB
  • Downloads (All Versions):
  • 281 downloads in the last day
  • 1918 downloads in the last week
  • 6779 downloads in the last month