google-i18n-address provides address validation helpers leveraging Google's international address database. It helps in validating, normalizing, and latinizing addresses for various countries. The library is currently at version 3.1.1 and receives updates typically for database rule changes or minor packaging improvements.
pip install google-i18n-addressVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to validate an international address using Address, AddressValidator, and get_validation_rules. It also shows how to normalize an address object.
Update your exception handling from `except InvalidAddress:` to `except InvalidAddressError:` and ensure you import `InvalidAddressError` from `i18naddress.errors`.
If your code expects `postal_code_examples` to be a string, update it to handle a list, e.g., `rules.postal_code_examples[0]` for the first example or iterate over the list.
Always use `import i18naddress` or `from i18naddress import ...` in your code, not `google_i18n_address`.
Review any custom validation logic that relies on empty non-required fields being flagged as invalid when a choice list is present. Adjust expectations or add explicit checks if needed.
No dependency data recorded yet.