Skip to main content

Python SDK for the VeriCorp API — European company verification

Project description

VeriCorp Python SDK

Python SDK for the VeriCorp API — European company verification.

Install

pip install vericorp

Quick Start

from vericorp 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 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.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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vericorp-1.0.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

vericorp-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file vericorp-1.0.0.tar.gz.

File metadata

  • Download URL: vericorp-1.0.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for vericorp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b880f8ae438445fca4236e61c1bbf3d20825964963b9354522f0a3d911e4cab4
MD5 f402b92adf21d9ae6a279880b2eb598e
BLAKE2b-256 70b6b96ded37eae20d60466e10e02be5b28295f7af3dfc4120d575a11f676696

See more details on using hashes here.

File details

Details for the file vericorp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: vericorp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for vericorp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7421b1e5038014085009ee8e9a70df83406391fad34ffdd823d813d72b5eae00
MD5 e134711431be9834c900a011efd181c1
BLAKE2b-256 5a06d630807706ba1401d004044656a330cdf2b36c8d9da0772b71818dc6c65e

See more details on using hashes here.

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