smartystreets-python-sdk 5.3.1__tar.gz → 5.5.0__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.
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/PKG-INFO +2 -3
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/setup.py +1 -6
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_autocomplete/client.py +3 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_autocomplete/lookup.py +4 -2
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/lookup.py +2 -11
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk.egg-info/PKG-INFO +2 -3
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk_version/__init__.py +1 -1
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/LICENSE.md +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/README.md +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/setup.cfg +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/basic_auth_credentials.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/batch.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/client_builder.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/custom_header_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/custom_query_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/errors.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/exceptions.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_autocomplete/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_autocomplete/candidate.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_postal_code/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_postal_code/candidate.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_postal_code/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_postal_code/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/analysis.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/candidate.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/changes.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/components.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/language_mode.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/metadata.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/international_street/rootlevel.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/license_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/native_serializer.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/proxy.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/request.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/requests_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/response.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/retry_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/shared_credentials.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/signing_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/static_credentials.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/status_code_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/url_prefix_sender.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_autocomplete_pro/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_autocomplete_pro/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_autocomplete_pro/geolocation_type.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_autocomplete_pro/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_autocomplete_pro/suggestion.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_enrichment/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_enrichment/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_enrichment/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_enrichment/response.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/address.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/metadata.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_extract/result.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/address.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/coordinate.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/response.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_reverse_geo/result.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/analysis.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/candidate.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/component_analysis.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/components.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/match_info.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/match_type.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/metadata.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_street/output_format.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/__init__.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/alternate_county.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/city.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/client.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/lookup.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/result.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/us_zipcode/zipcode.py +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk.egg-info/SOURCES.txt +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk.egg-info/dependency_links.txt +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk.egg-info/requires.txt +0 -0
- {smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk.egg-info/top_level.txt +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: smartystreets_python_sdk
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.5.0
|
|
4
4
|
Summary: An official library to help Python developers easily access the SmartyStreets APIs
|
|
5
5
|
Home-page: https://github.com/smartystreets/smartystreets-python-sdk
|
|
6
|
-
Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/5.
|
|
6
|
+
Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/5.5.0
|
|
7
7
|
Author: SmartyStreets SDK Team
|
|
8
8
|
Author-email: support@smartystreets.com
|
|
9
9
|
License: Apache 2
|
|
@@ -12,7 +12,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
14
|
Classifier: Natural Language :: English
|
|
15
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
License-File: LICENSE.md
|
|
18
17
|
Requires-Dist: requests
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
from smartystreets_python_sdk_version import __version__
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
from distutils.core import setup
|
|
5
|
-
|
|
6
|
-
if hasattr(os, 'link'):
|
|
7
|
-
del os.link
|
|
3
|
+
from setuptools import setup
|
|
8
4
|
|
|
9
5
|
setup(
|
|
10
6
|
name='smartystreets_python_sdk',
|
|
@@ -45,7 +41,6 @@ setup(
|
|
|
45
41
|
'Intended Audience :: Developers',
|
|
46
42
|
'License :: OSI Approved :: Apache Software License',
|
|
47
43
|
'Natural Language :: English',
|
|
48
|
-
'Programming Language :: Python :: 2.7',
|
|
49
44
|
'Programming Language :: Python :: 3'
|
|
50
45
|
],
|
|
51
46
|
install_requires=['requests']
|
|
@@ -40,6 +40,9 @@ class Client:
|
|
|
40
40
|
self.add_parameter(request, 'country', lookup.country)
|
|
41
41
|
self.add_parameter(request, 'search', lookup.search)
|
|
42
42
|
self.add_parameter(request, 'max_results', lookup.max_results)
|
|
43
|
+
self.add_parameter(request, 'max_group_results', lookup.max_group_results)
|
|
44
|
+
if lookup.geolocation:
|
|
45
|
+
self.add_parameter(request, 'geolocation', 'on')
|
|
43
46
|
self.add_parameter(request, 'include_only_locality', lookup.locality)
|
|
44
47
|
self.add_parameter(request, 'include_only_postal_code', lookup.postal_code)
|
|
45
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class Lookup:
|
|
2
|
-
def __init__(self, search=None, address_id=None, country=None, max_results=5,
|
|
3
|
-
postal_code=None):
|
|
2
|
+
def __init__(self, search=None, address_id=None, country=None, max_results=5, max_group_results=100,
|
|
3
|
+
geolocation=False, locality=None, postal_code=None):
|
|
4
4
|
"""
|
|
5
5
|
In addition to holding all the input data for this lookup, this class also will contain the result
|
|
6
6
|
of the lookup after it comes back from the API.
|
|
@@ -18,6 +18,8 @@ class Lookup:
|
|
|
18
18
|
self.address_id = address_id
|
|
19
19
|
self.country = country
|
|
20
20
|
self.max_results = max_results
|
|
21
|
+
self.max_group_results = max_group_results
|
|
22
|
+
self.geolocation = geolocation
|
|
21
23
|
self.locality = locality
|
|
22
24
|
self.postal_code = postal_code
|
|
23
25
|
|
|
@@ -63,20 +63,11 @@ class Lookup:
|
|
|
63
63
|
return not self.field_is_missing(field)
|
|
64
64
|
|
|
65
65
|
def ensure_enough_info(self):
|
|
66
|
-
if self.
|
|
66
|
+
if self.field_is_missing(self.country):
|
|
67
67
|
raise UnprocessableEntityError('Country field is required.')
|
|
68
68
|
|
|
69
|
-
if self.
|
|
70
|
-
return True
|
|
71
|
-
|
|
72
|
-
if self.missing_address1:
|
|
69
|
+
if self.field_is_missing(self.freeform) and self.field_is_missing(self.address1):
|
|
73
70
|
raise UnprocessableEntityError('Either freeform or address1 is required.')
|
|
74
|
-
|
|
75
|
-
if self.has_postal_code:
|
|
76
|
-
return True
|
|
77
|
-
|
|
78
|
-
if self.missing_locality_or_administrative_area:
|
|
79
|
-
raise UnprocessableEntityError('Insufficient information: One or more required fields were not set on the lookup.')
|
|
80
71
|
|
|
81
72
|
def add_custom_parameter(self, parameter, value):
|
|
82
73
|
self.custom_parameter_array[parameter] = value
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: smartystreets_python_sdk
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.5.0
|
|
4
4
|
Summary: An official library to help Python developers easily access the SmartyStreets APIs
|
|
5
5
|
Home-page: https://github.com/smartystreets/smartystreets-python-sdk
|
|
6
|
-
Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/5.
|
|
6
|
+
Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/5.5.0
|
|
7
7
|
Author: SmartyStreets SDK Team
|
|
8
8
|
Author-email: support@smartystreets.com
|
|
9
9
|
License: Apache 2
|
|
@@ -12,7 +12,6 @@ Classifier: Development Status :: 5 - Production/Stable
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
14
|
Classifier: Natural Language :: English
|
|
15
|
-
Classifier: Programming Language :: Python :: 2.7
|
|
16
15
|
Classifier: Programming Language :: Python :: 3
|
|
17
16
|
License-File: LICENSE.md
|
|
18
17
|
Requires-Dist: requests
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
__version__ = '0.0.0' # DO NOT EDIT (this is updated by a build job when a new release is published)
|
|
2
|
-
__version__="5.
|
|
2
|
+
__version__="5.5.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/batch.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/errors.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{smartystreets_python_sdk-5.3.1 → smartystreets_python_sdk-5.5.0}/smartystreets_python_sdk/proxy.py
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|