Repository navigation
feat: support australian addresses - #99
Open
agritheory wants to merge 1 commit into
Open
agritheory wants to merge 1 commit into
agritheory wants to merge 1 commit into
Conversation
Author
|
@DeviousStoat or @lmelninkas, I didn't add my handle to the authors file but I can. Please let me know if you want to discuss, I can maintain this as a fork if this is a change you don't want to accept. |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Australian address parsing under
country="AU", following the same per-country regex module pattern as US, CA, and GB. The newpyap/source_AU/data.pymodule is built from Geoscape G-NAF street-type vocabulary and covers common AU formats: unit slash notation (2/45), units and levels, PO/GPO box and locked bag lines, optional four-digit postcodes, and a required state or territory (abbreviations and full names, with title case only where it is safe). Shared helpersstr_list_to_upper_lower_regexandstreet_type_list_to_regexwere moved intopyap/utils.pyand reused from the US module without changing US behavior. Wiring updates include API/parser literals, tox, README, andtests/test_parser_au.pywith component, full-address, negative, and parts coverage informed by G-NAF and ACNC-style examples, plus a small integration test intest_parser.py.