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

Uploaded Python 3

File details

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

File metadata

  • Download URL: vendorval_sdk-0.2.0.tar.gz
  • Upload date:
  • Size: 20.0 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.2.0.tar.gz
Algorithm Hash digest
SHA256 e84615ce6126b1d81f025a4d012dc4398b8b0386693e8119e0122bf124abdf15
MD5 3dd4b31a6a65cc76f90ed9610f0589b2
BLAKE2b-256 578126d3834406da84135842be451821bbf5b74e05cf40066e9cccbf8c89f7aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendorval_sdk-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: vendorval_sdk-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a6784e409ba8b620126343b4f2afdea90555b86e15916618839d5dd94fe1769
MD5 b6b2594a44456bbb97ef392ed4e90199
BLAKE2b-256 e1d60fa8abab3f7c48047d9a0d98ddfa46c1823dc6513f2c347cc9590b96c66f

See more details on using hashes here.

Provenance

The following attestation bundles were made for vendorval_sdk-0.2.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