Sift
Python bindings for Sift Science's API
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 siftuv
uv add siftpoetry
poetry add siftInstalling 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
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
learnosity-sdkLearnosity SDK provides Python bindings to…
permissive · top 15,000 on PyPI
minfraudPython client library for MaxMind's minFraud…
permissive · top 15,000 on PyPI
schematichqProvides a Python client library for the…
permissive · top 15,000 on PyPI
google-cloud-recaptcha-enterprisePython client library for Google Cloud…
permissive · top 5,000 on PyPI
kanaries-trackSends event and metric data to Kanaries' data…
permissive · top 15,000 on PyPI
dtlpymetricsCalculates and generates quality scores for…
unclear · top 15,000 on PyPI
egnyteOfficial Python client library for Egnyte's…
permissive · top 15,000 on PyPI
neverbounce-sdkPython client library for the NeverBounce email…
permissive · top 15,000 on PyPI
descopeDescope SDK provides Python backend access to…
permissive · top 5,000 on PyPI
clarifaiOfficial Python client for Clarifai's AI…
permissive · top 15,000 on PyPI