Skip to main content

Official Python SDK for the VendorVal API

Project description

vendorval-sdk

Official Python SDK for the VendorVal API.

pip install vendorval-sdk

Quick start

from vendorval_sdk import Vendorval

client = Vendorval()  # reads VENDORVAL_API_KEY from env

# 1) Look up an entity by identifier
lookup = client.entities.lookup(identifiers={"uei": "ABCD12345678"})
if lookup.match == "not_found":
    raise SystemExit("entity not in registry")

# 2) Run a verification and wait for the terminal result
bundle = client.verifications.create_and_wait(
    identifiers=[{"type": "uei", "value": "ABCD12345678"}],
    legal_name="Acme Federal Services LLC",
    checks=["sam_registration"],
    mode="cached",
)
print(bundle.verification.overall_result)

Async

import asyncio
from vendorval_sdk import AsyncVendorval

async def main() -> None:
    async with AsyncVendorval() as client:
        result = await client.entities.lookup(identifiers={"uei": "ABCD12345678"})
        print(result.match)

asyncio.run(main())

Configuration

client = Vendorval(
    api_key="vv_live_…",
    base_url="https://api.vendorval.com",
    timeout=30.0,                 # seconds, default 60
    max_retries=2,                # default 2
)

API keys are prefixed vv_test_ (sandbox) or vv_live_ (production). The SDK validates the prefix client-side.

Errors

from vendorval_sdk import RateLimitError, ConflictError, ValidationError

try:
    client.verifications.create(...)
except RateLimitError as err:
    print("rate limited, retry after", err.retry_after, "seconds")
except ConflictError as err:
    print("ambiguous match", err.candidates)

All errors carry request_id, status, code, type, message.

Webhooks

from vendorval_sdk import construct_event

event = construct_event(raw_body, signature_header, secret)

Outbound webhook delivery is not enabled in the API yet; this helper exists so handler code is ready when delivery lands.

License

MIT

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

vendorval_sdk-0.8.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

vendorval_sdk-0.8.0-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file vendorval_sdk-0.8.0.tar.gz.

File metadata

  • Download URL: vendorval_sdk-0.8.0.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vendorval_sdk-0.8.0.tar.gz
Algorithm Hash digest
SHA256 6dbe0e2d2f8b1e8190330cfd301613e0494135e7c7d3c2205dea6c44de8d9dd8
MD5 1ff91eae81c5574917cd5d3957717ad9
BLAKE2b-256 6e5753673528b8ffba410ce4ccfcbe517f6ec9b7dc21715edc92f790022ca8fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendorval_sdk-0.8.0.tar.gz:

Publisher: release-python.yml on Modali-Consulting/vendorval-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vendorval_sdk-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: vendorval_sdk-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vendorval_sdk-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b2e2c8ee40841b7294b4bf5ff738ab75873f9ced5f690264493020f9ced28483
MD5 88257b76735ca37daa6a987aa26f341e
BLAKE2b-256 9ba3e265951b0e5b535e575e485a85c2e0acfffb262fec95506261f90641cd38

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendorval_sdk-0.8.0-py3-none-any.whl:

Publisher: release-python.yml on Modali-Consulting/vendorval-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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