skillfed

Sift

Python bindings for Sift Science's API

sift v6.0.0 295.3K downloads/30d#7,928 on PyPI20
Permissive license The MIT License Copyright (c) 2013-2016 Sift Science (https://siftscience.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) AGING released

What it is and what it does

Sift is a Python client for Sift Science's fraud detection platform. It wraps the Events, Labels, Score, and Decisions APIs, allowing you to send transaction and user activity events to Sift for real-time risk assessment, retrieve fraud scores and percentiles, label users as fraudulent or legitimate, and manage verification workflows including OTP generation and validation.

The library is designed for integration into payment, marketplace, and authentication systems where you need to detect and prevent fraud. It handles API communication, response parsing, and error handling through a simple client interface. No external runtime dependencies are required beyond Python itself.

Use it for:

  • Track e-commerce transactions and user events to Sift for real-time fraud scoring and abuse detection.
  • Retrieve risk scores for users or orders to make accept/reject decisions in payment flows.
  • Label users as fraudulent or legitimate based on manual review or chargeback events.
  • Implement OTP-based verification workflows for high-risk login or transaction events.
  • Query workflow execution status and latest decisions for users, orders, sessions, or content.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Python client library for Sift Science's fraud detection and abuse prevention APIs, providing methods to track events, request risk scores, label users, and manage verification workflows.

Yes, if you use Sift Science for fraud detection. The library is stable and supports current Python versions, but high install friction and aging maintenance (466 days since last release) suggest checking whether Sift has released a newer version or recommends an alternative client before adopting. No known vulnerabilities.

Install

sift on PyPI

pip

pip install sift

uv

uv add sift

poetry

poetry add sift

Installing Sift

Before you install

High install friction with no runtime dependencies. Last release was 466 days ago; repository is not archived but shows aging maintenance. Supports Python 3.8 through 3.13 and is marked Production/Stable.

License in practice

MIT License (permissive). You may use, modify, and distribute this package freely in commercial or private projects, provided you retain the original copyright notice and license text.

Quickstart

pip install Sift

import sift

client = sift.Client(api_key='your_key', account_id='your_account')
response = client.track('$transaction', {'$user_id': '23056', '$amount': 15230000})
if response.is_ok():
    print('Event tracked')

Requires a valid Sift Science API key and account ID to authenticate requests.

Verify before relying

  • Whether the high install friction relates to compiled extensions, network checks during installation, or other build-time requirements not evident from the package metadata.

Package facts

License The MIT License Copyright (c) 2013-2016 Sift Science (https://siftscience.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated… (full text in the JSON record) (permissive)
Python support supports the current Python release (>=3.8)
Install friction high — source build required
Runtime dependencies none
Maintenance aging — 466 days since the last release
Last repo commit
First released
Downloads 295,262/month — #7,928 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: Sift-6.0.0.tar.gz

Keywords: sift, sift-python

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

fraud detection api clientsift science python bindingsabuse prevention sdkrisk scoring apievent tracking fraud
fraud-detectionapi-clientsift-science

More Python Modules packages