Skip to main content

verifiquemos

Official Python SDK for the Verifiquemos compliance API.

KYC, RENAP, OFAC, ONU, Lista Engel, PEP, CPE — Guatemala-specific compliance in one API call.

Requirements

  • Python >= 3.10 (tested on 3.10, 3.11, 3.12, 3.13, 3.14)

Install

pip install verifiquemos

Quickstart (sync)

from verifiquemos import VerifiquemosClient

with VerifiquemosClient(api_key="vfq_...") as client:
    validation = client.validations.create(
        naturaleza="persona_individual",
        cui="1234567890101",
        nombre_completo="Juan Pérez",
        actividad_economica="asalariados",
        tipo_cliente="individual_nacional_renap",
        producto_servicio="cuentas_pasivas",
        perfil_ingreso="ingresos_bajos",
    )
    print(f"Validation submitted: {validation['id']}")

Quickstart (async)

import asyncio
from verifiquemos import AsyncVerifiquemosClient

async def main():
    async with AsyncVerifiquemosClient(api_key="vfq_...") as client:
        validation = await client.validations.create(
            naturaleza="persona_juridica",
            nit="1234567",
            razon_social="ACME S.A.",
            actividad_economica="comercio_general",
            tipo_cliente="juridica_nacional_registrada",
            producto_servicio="servicios_economicos",
            perfil_ingreso="ingresos_altos",
        )
        print(f"Validation submitted: {validation['id']}")

asyncio.run(main())

Poll and download the report

create() returns immediately; the validation runs asynchronously. Poll get() until the status reaches a terminal state, then fetch the report via the signed URL the API returns.

import time
import httpx

while True:
    result = client.validations.get(validation["id"])
    if result["status"] in ("completed", "completed_partial", "failed", "cancelled"):
        break
    time.sleep(3)

# A report is only generated for completed runs. Skip the round-trip on
# failed / cancelled so the example doesn't make a noisy request for an
# artifact the API won't return.
if result["status"] in ("completed", "completed_partial"):
    report = client.validations.report(validation["id"])
    # report = {"report_url": "https://...", "expires_at": None}
    # report_url is always present per the schema; expires_at may be None
    # until the SAS-signing layer lands on the server.
    pdf = httpx.get(report["report_url"]).content
    with open("report.pdf", "wb") as f:
        f.write(pdf)

List, cancel and catalogs

# Paginated list (filter by status optional)
page = client.validations.list(status="pending", limit=20, offset=0)
print(page["total"], "validations,", len(page["items"]), "in this page")

# Cancel an in-flight validation (idempotent — second call replays the first)
cancelled = client.validations.cancel(validation["id"])

# Catalogs the SDK exposes for client-side dropdowns
client.catalogs.naturalezas()           # 2 SIB-regulated values
client.catalogs.actividades_economicas()
client.catalogs.tipos_cliente()
client.catalogs.productos_servicios()
client.catalogs.perfiles_ingreso()

# Country lookups (Guatemala-specific compliance: OFAC/GAFI sanctions list)
client.countries.list(search="guate")
client.countries.list_sanctioned()

Error handling

from verifiquemos import ApiError, RateLimitError, NetworkError, VerifiquemosClient

with VerifiquemosClient(api_key="vfq_...") as client:
    try:
        client.validations.create(...)
    except RateLimitError as e:
        print(f"Retry after {e.retry_after_seconds}s")
    except ApiError as e:
        if e.is_payment_required:
            print("Payment required (402)")
        else:
            raise
    except NetworkError:
        print("Connection failed")

Configuration

Argument Default Description
api_key (required) Server-issued API key. Starts with vfq_.
base_url https://api.verifiquemos.com/external/v1 Override for staging/dev.
timeout 30.0 httpx timeout in seconds.

Documentation

Development

cd verifiquemos-sdk-python
pip install -e ".[dev]"
pytest tests/ -v                              # tests (respx mockea httpx)
ruff check verifiquemos/ tests/
mypy verifiquemos/ --ignore-missing-imports

# Los modelos en verifiquemos/_generated/ se generan desde el OpenAPI externo
# del API. No editarlos a mano; regenerar tras cambios de contrato (requiere
# el repo hermano ../verifiquemos-api):
bash scripts/regen_models.sh             # lee ../verifiquemos-api/openapi-external.json

Release

Publishing to PyPI is triggered by pushing a git tag v<version>. On the tag the Azure pipeline runs the test matrix (Python 3.10–3.14) and then the Publish stage, which is exactly:

pip install hatch twine
hatch build                                   # wheel + sdist → dist/
TWINE_USERNAME=__token__ TWINE_PASSWORD=$PYPI_TOKEN twine upload dist/* --skip-existing

Bump version in pyproject.toml and __version__ in verifiquemos/__init__.py (they must match) and update CHANGELOG.md before tagging.

License

MIT

Metadata

Release files for verifiquemos 0.16.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for verifiquemos 0.16.1
File Size Uploaded Provenance Actions
verifiquemos-0.16.1.tar.gz 29.1 kB Without provenance Details for verifiquemos-0.16.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for verifiquemos 0.16.1
File Interpreter ABI Platform Actions
verifiquemos-0.16.1-py3-none-any.whl Python 3 none any Details for verifiquemos-0.16.1-py3-none-any.whl

Total release size: 43.2 kB

Release files / verifiquemos-0.16.1.tar.gz

Download URL verifiquemos-0.16.1.tar.gz
Size 29.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4069838961bf615d147e1a682e028f2d475659e108e43d3050d0896d1d757691
BLAKE2b-256 checksum
How to use checksums
56387091131dcce9f41c6781b6cbea3039cc38f11530092895b8602361042fbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / verifiquemos-0.16.1-py3-none-any.whl

Download URL verifiquemos-0.16.1-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d8d8998db225518fe81327fd999bf68bae94a2d4cae962d01b3b66602f36049a
BLAKE2b-256 checksum
How to use checksums
2829867f9d853ea347a6dffdfb1de3ea88ed2e2cd14da2189767d7fd4efeaf6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Security for verifiquemos 0.16.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.16.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page