{"id":24805,"library":"vat-utils","title":"vat-utils","description":"vat-utils is a Python library for working with VAT (Value Added Tax) numbers, including validation and formatting. Version 0.3.1 requires Python >=3.6,<4.0. Release cadence is irregular.","status":"active","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/your-org/vat-utils","tags":["vat","validation","europe","tax"],"install":[{"cmd":"pip install vat-utils","lang":"bash","label":"Install via pip"}],"dependencies":[],"imports":[{"note":"","wrong":"","symbol":"vatutils","correct":"import vatutils"},{"note":"","wrong":"","symbol":"VatNumber","correct":"from vatutils import VatNumber"}],"quickstart":{"code":"import vatutils\n\n# Validate a VAT number\nvat = vatutils.VatNumber('GB123456789')\nprint(vat.is_valid())","lang":"python","description":"Validate a VAT number using VatNumber class."},"warnings":[{"fix":"Replace `vatutils.validate_vat(vat_number)` with `vatutils.VatNumber(vat_number).is_valid()`.","message":"The function `vatutils.validate_vat` is deprecated and may be removed in future versions. Use `VatNumber.is_valid()` instead.","severity":"deprecated","affected_versions":">=0.3.0,<0.4.0"},{"fix":"Update code to check only the boolean: `if vat.is_valid():` instead of `valid, msg = vat.is_valid()`.","message":"Version 0.3.0 changed the return type of `VatNumber.is_valid()` from a tuple `(bool, str)` to a boolean. This breaks code expecting a tuple.","severity":"breaking","affected_versions":">=0.3.0"},{"fix":"Use additional services like vies for live validation.","message":"The library does not perform live checks against official VAT databases (e.g., VIES). It only validates the format. This may be misunderstood.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use `vatutils.VatNumber(vat_number).is_valid()` instead.","cause":"The function `validate_vat` was removed in version 0.3.0.","error":"AttributeError: module 'vatutils' has no attribute 'validate_vat'"},{"fix":"Change `valid, msg = vat.is_valid()` to `valid = vat.is_valid()` and remove msg usage.","cause":"Trying to access tuple indexing on the result of `is_valid()` which now returns a bool.","error":"TypeError: 'bool' object is not subscriptable"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}