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


Download files

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

Source Distribution

Sift-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file Sift-0.1.0.tar.gz.

File metadata

  • Download URL: Sift-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Sift-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0ed7f9974a77f4b967a698935b612bb3346fe3c5b80b530d600b271092e7a6fe
MD5 2c824bf3c746892e5babd16d9c375ea1
BLAKE2b-256 1912fcf86dff6d616ae1bde3a242304481c5604cb210146da7806b24c089809d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page