Skip to main content

Python bindings for Sift Science's REST event API

Project description

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

Project details


Release history Release notifications

History Node

4.0.1

History Node

4.0.0.0

History Node

3.2.0.0

History Node

3.1.0.0

History Node

3.0.0.0

History Node

2.0.1.0

History Node

2.0.0.0

History Node

1.1.2.6

History Node

1.1.2.5

History Node

1.1.2.3

History Node

1.1.2.2

History Node

1.1.2.1

History Node

1.1.2.0

History Node

1.1.1.0

History Node

1.1.0.0

History Node

0.2.0.1

History Node

0.2.0

This version
History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Sift-0.1.0.tar.gz (2.3 kB) Copy SHA256 hash SHA256 Source None Jan 9, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page