Skip to main content

Python SDK for Cross-Border Compliance API - sanctions screening against OFAC, EU, UN, UK

Project description

Compliance SDK

Python SDK for the Cross-Border Compliance API.

Installation

pip install compliance-sdk

Quick Start

from compliance_sdk import ComplianceClient

with ComplianceClient(api_key="CB...") as client:
    result = client.screen("Vladimir Putin")

    if result.success:
        print(f"Found {result.total_matched} matches in {result.query_time_ms}ms")
        for match in result.matches:
            print(f"  [{match.confidence_score:.0%}] {match.entity_name} ({', '.join(match.matched_sources)})")

Batch Screening

with ComplianceClient(api_key="CB...") as client:
    result = client.screen_batch([
        {"entity_name": "Vladimir Putin"},
        {"entity_name": "Kim Jong Un"},
        {"entity_name": "al qaeda"},
    ])
    print(f"Matched {result.total_matched} entities")

Data Sources

Source Entities
OFAC (US Treasury) 18,707
UK FCDO 6,042
EU CFSP 5,840
UN Security Council 1,004
Total 31,593

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

compliance_screening-1.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file compliance_screening-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for compliance_screening-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c99a36c3366744a219ebf4c8600921577227a61cca2df691dbaab3dd77a35825
MD5 48fc4086c04eaa44aec2eb62e82370dd
BLAKE2b-256 b32dc913fe7fad72d833829782c6ab307917f6a6371f0a2033e4e2b0e65f31ef

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