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.2.0.tar.gz (6.6 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.2.0-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for verifex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7e3fff6f823e8c04c9e97200878d3e80641c206fd745059a91dc3a416dd411ef
MD5 14cee65ea0c72e516eb7e328f1e19102
BLAKE2b-256 caa6f0f0974d8863333aa09d69676d82682070800b05302842a2303ca81e8e7d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for verifex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98a75b00cd0287e9450e28eab08c0b76019c86f643e6845f34c96d4d8b5a8ad0
MD5 8126a9002dc6e11d7eb349a6ab02bb12
BLAKE2b-256 42156d965465a1ec86c8c5326101787f687d967dff36cf391c6650748c97c8fd

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