Skip to main content

Official Python SDK for Verifex - Real-time Sanctions Screening API

Project description

Verifex Python SDK

Official Python SDK for Verifex - Real-time Sanctions Screening API.

Screen persons and entities against OFAC, UN, EU, UK, Canada, and PEP lists in a single API call. 730,000+ entities across 9 data sources.

Installation

pip install verifex

Quick Start

from verifex import VerifexClient

client = VerifexClient("vfx_your_api_key")

# Screen a person
result = client.screen("Vladimir Putin", type="person")
print(result.risk_level)        # RiskLevel.CRITICAL
print(result.total_matches)     # 1
print(result.matches[0].name)   # "PUTIN, Vladimir Vladimirovich"
print(result.matches[0].source) # "OFAC"
print(result.matches[0].confidence)  # 100

Screening

Single screening

result = client.screen("John Doe")

if result.is_clear:
    print("No matches found")
else:
    print(f"Risk: {result.risk_level}")
    for match in result.matches:
        print(f"  {match.name} ({match.source}, {match.confidence}%)")

With filters

# Filter by entity type
result = client.screen("Sberbank", type="entity")

# Filter by country
result = client.screen("Ali", country="Iran")

Batch screening

results = client.batch_screen([
    {"name": "Vladimir Putin", "type": "person"},
    {"name": "Jane Doe"},
    {"name": "Sberbank", "type": "entity"},
])

for r in results.results:
    status = "MATCH" if r.is_match else "CLEAR"
    print(f"{r.query['name']}: {status} ({r.risk_level})")

Usage and Keys

# Check usage
usage = client.usage()
print(f"Plan: {usage.plan}")
print(f"Used: {usage.current_month_usage} / {usage.monthly_quota}")
print(f"Remaining: {usage.remaining}")

# Health check (no auth required)
health = client.health()
print(f"Status: {health.status}")
print(f"Total entries: {health.total_entries}")

Error Handling

from verifex import VerifexClient
from verifex.types import ApiError

client = VerifexClient("vfx_invalid_key")

try:
    result = client.screen("test")
except ApiError as e:
    print(e.code)        # "UNAUTHORIZED"
    print(e.error)       # "Invalid or revoked API key"
    print(e.status_code) # 401

Risk Levels

Level Confidence Meaning
critical 90%+ Exact or near-exact match
high 75-89% Strong fuzzy match
medium 60-74% Moderate similarity
low 40-59% Weak match
clear No matches No matches found

Requirements

  • Python 3.9+
  • No external dependencies (uses stdlib urllib)

Links

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

verifex-0.3.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

verifex-0.3.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file verifex-0.3.0.tar.gz.

File metadata

  • Download URL: verifex-0.3.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for verifex-0.3.0.tar.gz
Algorithm Hash digest
SHA256 6c185310495ded2e26ca424e6aee4e35419fbba867730c2d1e0a62211a31ebc5
MD5 26ec694489a695ea4607869917667cc9
BLAKE2b-256 ceb0659d2440ba7087e0af9950a4fd77625d3ddf2448dec5ac344a22c123de05

See more details on using hashes here.

File details

Details for the file verifex-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: verifex-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for verifex-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 daaf8fcf8c89427b446df3ad30e97075e524fd9fe2af61fe56a7e8e78d5eab74
MD5 eca3fd18f67f0753931a8d82ee6a06bd
BLAKE2b-256 6ae7737891f349ddabdef2022bbe2e1f09cec66edd657e1ae2e25bd3e503b31e

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