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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e84615ce6126b1d81f025a4d012dc4398b8b0386693e8119e0122bf124abdf15
|
|
| MD5 |
3dd4b31a6a65cc76f90ed9610f0589b2
|
|
| BLAKE2b-256 |
578126d3834406da84135842be451821bbf5b74e05cf40066e9cccbf8c89f7aa
|
Provenance
The following attestation bundles were made for vendorval_sdk-0.2.0.tar.gz:
Publisher:
release-python.yml on Modali-Consulting/vendorval-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vendorval_sdk-0.2.0.tar.gz -
Subject digest:
e84615ce6126b1d81f025a4d012dc4398b8b0386693e8119e0122bf124abdf15 - Sigstore transparency entry: 1439777647
- Sigstore integration time:
-
Permalink:
Modali-Consulting/vendorval-sdk@aaf759946c670829ec270e0fcf01dfb5fe14ae21 -
Branch / Tag:
refs/tags/python-v0.2.0 - Owner: https://github.com/Modali-Consulting
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@aaf759946c670829ec270e0fcf01dfb5fe14ae21 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a6784e409ba8b620126343b4f2afdea90555b86e15916618839d5dd94fe1769
|
|
| MD5 |
b6b2594a44456bbb97ef392ed4e90199
|
|
| BLAKE2b-256 |
e1d60fa8abab3f7c48047d9a0d98ddfa46c1823dc6513f2c347cc9590b96c66f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
vendorval_sdk-0.2.0-py3-none-any.whl -
Subject digest:
7a6784e409ba8b620126343b4f2afdea90555b86e15916618839d5dd94fe1769 - Sigstore transparency entry: 1439777656
- Sigstore integration time:
-
Permalink:
Modali-Consulting/vendorval-sdk@aaf759946c670829ec270e0fcf01dfb5fe14ae21 -
Branch / Tag:
refs/tags/python-v0.2.0 - Owner: https://github.com/Modali-Consulting
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-python.yml@aaf759946c670829ec270e0fcf01dfb5fe14ae21 -
Trigger Event:
push
-
Statement type: