pyap2 0.2.7__tar.gz → 0.2.8__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyap2-0.2.7 → pyap2-0.2.8}/PKG-INFO +1 -1
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_US/data.py +8 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyproject.toml +1 -1
- {pyap2-0.2.7 → pyap2-0.2.8}/LICENSE +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/README.rst +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/__init__.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/address.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/api.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/exceptions.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/parser.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/py.typed +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_CA/__init__.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_CA/data.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_GB/__init__.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_GB/data.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/source_US/__init__.py +0 -0
- {pyap2-0.2.7 → pyap2-0.2.8}/pyap/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pyap2
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.8
|
|
4
4
|
Summary: Pyap2 is a maintained fork of pyap, a regex-based library for parsing US, CA, and UK addresses. The fork adds typing support, handles more address formats and edge cases.
|
|
5
5
|
Home-page: https://github.com/argyle-engineering/pyap
|
|
6
6
|
License: MIT
|
|
@@ -188,6 +188,10 @@ numbered_road_re = r"""[Ss][Tt][Aa][Tt][Ee]\ [Rr][Oo][Aa][Dd]\ \d{1,4}(?!\d)"""
|
|
|
188
188
|
|
|
189
189
|
numbered_route_re = r"""[Rr][Oo][Uu][Tt][Ee]\ \d{1,4}(?!\d)"""
|
|
190
190
|
|
|
191
|
+
numbered_alternate = (
|
|
192
|
+
r"""(?:[Aa][Ll][Tt]|[Aa][Ll][Tt][Ee][Rr][Nn][Aa][Tt][Ee])\ \d{1,4}(?!\d)"""
|
|
193
|
+
)
|
|
194
|
+
|
|
191
195
|
# Used to handle edge cases where streets don't have a street type:
|
|
192
196
|
# eg. `55 HIGHPOINT`, `600 HIGHWAY 32`
|
|
193
197
|
numbered_or_typeless_street_name = r"""
|
|
@@ -205,6 +209,8 @@ numbered_or_typeless_street_name = r"""
|
|
|
205
209
|
{numbered_road_re}
|
|
206
210
|
|
|
|
207
211
|
{numbered_route_re}
|
|
212
|
+
|
|
|
213
|
+
{numbered_alternate}
|
|
208
214
|
)
|
|
209
215
|
)
|
|
210
216
|
""".format(
|
|
@@ -216,6 +222,7 @@ numbered_or_typeless_street_name = r"""
|
|
|
216
222
|
numbered_avenue_re=numbered_avenue_re,
|
|
217
223
|
numbered_road_re=numbered_road_re,
|
|
218
224
|
numbered_route_re=numbered_route_re,
|
|
225
|
+
numbered_alternate=numbered_alternate,
|
|
219
226
|
)
|
|
220
227
|
|
|
221
228
|
post_direction = r"""
|
|
@@ -301,6 +308,7 @@ street_type_list = [
|
|
|
301
308
|
"Centers",
|
|
302
309
|
"Centr",
|
|
303
310
|
"Centre",
|
|
311
|
+
"Chase",
|
|
304
312
|
"Cir",
|
|
305
313
|
"Circ",
|
|
306
314
|
"Circl",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "pyap2"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.8"
|
|
4
4
|
packages = [{ include = "pyap" }]
|
|
5
5
|
description = "Pyap2 is a maintained fork of pyap, a regex-based library for parsing US, CA, and UK addresses. The fork adds typing support, handles more address formats and edge cases."
|
|
6
6
|
authors = ["Argyle Developers <developers@argyle.io>"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|