Python SDK for the VeriCorp API — European company verification
Project description
vericorp-company-verify
Python SDK for the VeriCorp Company Verify API — European company verification.
Install
pip install vericorp-company-verify
Quick Start
from vericorp_company_verify import VeriCorp
client = VeriCorp("your-rapidapi-key")
# Look up a company
company = client.lookup("PT502011378")
print(company.name) # UNIVERSIDADE DO MINHO
print(company.address) # Address(street='LG DO PACO', city='BRAGA', ...)
# Validate a VAT number
result = client.validate("DE811871080")
print(result.vat_valid) # True
# List supported countries
countries = client.countries()
print(countries.total) # 29
Async
from vericorp_company_verify import AsyncVeriCorp
async with AsyncVeriCorp("your-rapidapi-key") as client:
company = await client.lookup("DK10150817")
print(company.name)
Methods
| Method | Description |
|---|---|
lookup(tax_id) |
Look up company by tax ID |
lookup_gb(company_number) |
Look up UK company by number |
validate(tax_id) |
Validate a VAT number |
batch(tax_ids) |
Batch lookup (max 10) |
countries() |
List supported countries |
health() |
API health check |
Error Handling
from vericorp_company_verify.errors import InvalidTaxIdError, NotFoundError, RateLimitError
try:
company = client.lookup("INVALID")
except InvalidTaxIdError:
print("Bad tax ID format")
except NotFoundError:
print("Company not found")
except RateLimitError as e:
print(f"Rate limited, retry after {e.retry_after}s")
License
MIT
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 vericorp_company_verify-2.0.0.tar.gz.
File metadata
- Download URL: vericorp_company_verify-2.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d53cd70aa0cf65b9558571ab6eaa0347e96efa2b9ce244032c7dbfe5af760afc
|
|
| MD5 |
4737fc71e3cdcd7304f08d003b9d643b
|
|
| BLAKE2b-256 |
5d720f199841fe741b66d29fbf3b137831a0d9927eb76d80ffff3fe1c8db72cb
|
File details
Details for the file vericorp_company_verify-2.0.0-py3-none-any.whl.
File metadata
- Download URL: vericorp_company_verify-2.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f781f75adf5fecf08af399e774ab4359e5ca4bd1fbbd0f95a8e5c69b358b0e67
|
|
| MD5 |
79bfa70f998ba309acccc20c795db1f8
|
|
| BLAKE2b-256 |
13daa137098d5aab149a875f7eab1368a88356a2ef65925b8fa087167a173fa2
|