The `sift` library provides Python bindings for interacting with the Sift Science API, which offers real-time fraud prevention and risk assessment. It enables developers to send event data, retrieve scores and decisions, and manage labels. The library is actively maintained, with version 6.0.0 as the current release, and follows a regular release cadence to support new Python versions and API features.
pip install siftVerified import paths — ran on the pinned version, not inferred.
Initialize the Sift client using your API key and Account ID, then demonstrate sending a `$login` event and fetching user decisions. Authentication details are expected via environment variables for security.
Upgrade your Python environment to 3.8 or newer, or pin `sift` to a version less than 6.0.0 (e.g., `pip install 'sift<6.0.0'`).
When calling `client.get_decisions()`, pass `abuse_types` as a tuple or list of strings: `abuse_types=('legacy', 'payment_abuse')`.Ensure your `sift.Client` is initialized with `api_key` and the library will automatically handle Basic Authentication for affected methods. Do not manually add `api_key` to event bodies or URL parameters for these calls.
Change the `abuse_types` parameter from a string to a tuple or list of strings: `abuse_types=('legacy', 'payment_abuse')`.Verify that `SIFT_API_KEY` and `SIFT_ACCOUNT_ID` environment variables are correctly set, or that `api_key` and `account_id` are passed correctly to `sift.Client()` upon instantiation.
Upgrade your Python environment to version 3.8 or higher. Alternatively, if unable to upgrade Python, downgrade the `sift` library version: `pip install 'sift<6.0.0'`.
No dependency data recorded yet.