python-stdnum
Parse and validate VAT, TIN and company numbers for dozens of countries.
What it does
Parses, validates and reformats standard numbers and codes, among them VAT, tax identification and company register numbers for many countries, plus IBAN, ISIN and LEI, using checksums and format rules. A pure Python 3 library with no external dependencies; each module offers validate(), compact() and format(). The README does not mention checks against online registers; LGPL-2.1 or later.
Where it fits on the map
- Company tax department › Indirect Tax / VAT / GSTIndirect taxcovered
- Tax authority › RegistrationTaxpayer register & identifierspartly covered
Named as a project to start with: One library validates identifiers for dozens of countries; the rest of the activity is a gap.
On Learn
- APIGlossary term
- Check a VAT number from an agentHow-to guide
Similar projects
Of the same kind, for a shared jurisdiction or tax area. Not a ranking.
- aade-mydataPHP client for Greece's AADE myDATA invoicing API: send, cancel and retrieve invoices.
- Attest.NET library that validates ID numbers, tax codes, VAT numbers and postal codes in 87 countries.
- BelgiumVatChecker.NET Web API that validates Belgian and EU VAT numbers using the VIES service.
- BrevJVM library to write and read Peppol BIS Billing 3.0 invoices and credit notes, with Norwegian identifiers.
- cbam-apiGo API on the EU Carbon Border Adjustment Mechanism (CBAM) data model.
- chinaport-data-signatureSigns China E-Port customs messages (CEB, 179 data) for cross-border e-commerce declarations.
Maintain this project?
Link to this page from your README, so readers find the facts, the notes and where it fits. The badge is a small SVG served from this site.
[](https://tax-oss.com/projects/stdnum/)