Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Pyap2: Python address parser


Pyap2 is a maintained fork of Pyap, a regex-based python library for
detecting and parsing addresses. Currently it supports US 🇺🇸, Canadian 🇨🇦 and British 🇬🇧 addresses.
detecting and parsing addresses. Currently it supports US 🇺🇸, Canadian 🇨🇦, British 🇬🇧 and Australian 🇦🇺 addresses.


.. code-block:: python
Expand Down
4 changes: 2 additions & 2 deletions pyap/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from . import address


def parse(some_text: str, country: Literal["US", "GB", "CA"]) -> List[address.Address]:
def parse(some_text: str, country: Literal["US", "GB", "CA", "AU"]) -> List[address.Address]:
"""Creates request to AddressParser
and returns list of Address objects
"""
Expand All @@ -25,7 +25,7 @@ def parse(some_text: str, country: Literal["US", "GB", "CA"]) -> List[address.Ad


def parse_single_street(
some_text: str, country: Literal["US", "GB", "CA"]
some_text: str, country: Literal["US", "GB", "CA", "AU"]
) -> List[address.Address]:
ap = parser.AddressParser(country)
return ap.parse_single_street(some_text)
2 changes: 1 addition & 1 deletion pyap/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@


class AddressParser:
def __init__(self, country: Literal["US", "CA", "GB"]):
def __init__(self, country: Literal["US", "CA", "GB", "AU"]):
"""Initialize with custom arguments"""
self.country = country.upper()

Expand Down
Empty file added pyap/source_AU/__init__.py
Empty file.
Loading