smartystreets-python-sdk 6.0.0__tar.gz → 6.1.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.
Files changed (92) hide show
  1. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/PKG-INFO +2 -2
  2. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/setup.py +2 -14
  3. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/custom_header_sender.py +3 -18
  4. smartystreets_python_sdk-6.1.0/smartystreets_python_sdk/us_enrichment/business/__init__.py +2 -0
  5. smartystreets_python_sdk-6.1.0/smartystreets_python_sdk/us_enrichment/business/detail.py +206 -0
  6. smartystreets_python_sdk-6.1.0/smartystreets_python_sdk/us_enrichment/business/summary.py +15 -0
  7. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk.egg-info/PKG-INFO +2 -2
  8. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk.egg-info/SOURCES.txt +3 -0
  9. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk_version/__init__.py +1 -1
  10. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/LICENSE.md +0 -0
  11. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/README.md +0 -0
  12. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/setup.cfg +0 -0
  13. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/__init__.py +0 -0
  14. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/basic_auth_credentials.py +0 -0
  15. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/batch.py +0 -0
  16. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/client_builder.py +0 -0
  17. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/custom_query_sender.py +0 -0
  18. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/errors.py +0 -0
  19. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/exceptions.py +0 -0
  20. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_autocomplete/__init__.py +0 -0
  21. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_autocomplete/candidate.py +0 -0
  22. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_autocomplete/client.py +0 -0
  23. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_autocomplete/lookup.py +0 -0
  24. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_postal_code/__init__.py +0 -0
  25. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_postal_code/candidate.py +0 -0
  26. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_postal_code/client.py +0 -0
  27. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_postal_code/lookup.py +0 -0
  28. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/__init__.py +0 -0
  29. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/analysis.py +0 -0
  30. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/candidate.py +0 -0
  31. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/changes.py +0 -0
  32. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/client.py +0 -0
  33. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/components.py +0 -0
  34. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/language_mode.py +0 -0
  35. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/lookup.py +0 -0
  36. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/metadata.py +0 -0
  37. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/international_street/rootlevel.py +0 -0
  38. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/license_sender.py +0 -0
  39. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/native_serializer.py +0 -0
  40. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/proxy.py +0 -0
  41. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/request.py +0 -0
  42. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/requests_sender.py +0 -0
  43. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/response.py +0 -0
  44. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/retry_sender.py +0 -0
  45. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/shared_credentials.py +0 -0
  46. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/signing_sender.py +0 -0
  47. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/static_credentials.py +0 -0
  48. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/status_code_sender.py +0 -0
  49. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/url_prefix_sender.py +0 -0
  50. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_autocomplete_pro/__init__.py +0 -0
  51. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_autocomplete_pro/client.py +0 -0
  52. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_autocomplete_pro/geolocation_type.py +0 -0
  53. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_autocomplete_pro/lookup.py +0 -0
  54. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_autocomplete_pro/suggestion.py +0 -0
  55. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_enrichment/__init__.py +0 -0
  56. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_enrichment/client.py +0 -0
  57. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_enrichment/lookup.py +0 -0
  58. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_enrichment/response.py +0 -0
  59. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/__init__.py +0 -0
  60. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/address.py +0 -0
  61. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/client.py +0 -0
  62. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/lookup.py +0 -0
  63. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/metadata.py +0 -0
  64. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_extract/result.py +0 -0
  65. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/__init__.py +0 -0
  66. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/address.py +0 -0
  67. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/client.py +0 -0
  68. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/coordinate.py +0 -0
  69. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/lookup.py +0 -0
  70. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/response.py +0 -0
  71. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_reverse_geo/result.py +0 -0
  72. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/__init__.py +0 -0
  73. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/analysis.py +0 -0
  74. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/candidate.py +0 -0
  75. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/client.py +0 -0
  76. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/component_analysis.py +0 -0
  77. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/components.py +0 -0
  78. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/lookup.py +0 -0
  79. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/match_info.py +0 -0
  80. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/match_type.py +0 -0
  81. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/metadata.py +0 -0
  82. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_street/output_format.py +0 -0
  83. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/__init__.py +0 -0
  84. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/alternate_county.py +0 -0
  85. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/city.py +0 -0
  86. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/client.py +0 -0
  87. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/lookup.py +0 -0
  88. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/result.py +0 -0
  89. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk/us_zipcode/zipcode.py +0 -0
  90. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk.egg-info/dependency_links.txt +0 -0
  91. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.0}/smartystreets_python_sdk.egg-info/requires.txt +0 -0
  92. {smartystreets_python_sdk-6.0.0 → smartystreets_python_sdk-6.1.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: 6.0.0
3
+ Version: 6.1.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/6.0.0
6
+ Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/6.1.0
7
7
  Author: SmartyStreets SDK Team
8
8
  Author-email: support@smartystreets.com
9
9
  License: Apache 2
@@ -1,22 +1,10 @@
1
1
  from smartystreets_python_sdk_version import __version__
2
2
 
3
- from setuptools import setup
3
+ from setuptools import find_packages, setup
4
4
 
5
5
  setup(
6
6
  name='smartystreets_python_sdk',
7
- packages=[
8
- 'smartystreets_python_sdk',
9
- 'smartystreets_python_sdk_version',
10
- 'smartystreets_python_sdk.us_street',
11
- 'smartystreets_python_sdk.us_zipcode',
12
- 'smartystreets_python_sdk.us_extract',
13
- 'smartystreets_python_sdk.international_street',
14
- 'smartystreets_python_sdk.us_reverse_geo',
15
- 'smartystreets_python_sdk.us_autocomplete_pro',
16
- 'smartystreets_python_sdk.international_autocomplete',
17
- 'smartystreets_python_sdk.international_postal_code',
18
- 'smartystreets_python_sdk.us_enrichment'
19
- ],
7
+ packages=find_packages(include=['smartystreets_python_sdk*', 'smartystreets_python_sdk_version*']),
20
8
  version=__version__,
21
9
  description='An official library to help Python developers easily access the SmartyStreets APIs',
22
10
  long_description='Official Python library for SmartyStreets',
@@ -1,29 +1,14 @@
1
- from requests import Request
2
-
3
-
4
1
  class CustomHeaderSender:
5
2
  def __init__(self, headers, inner, append_headers=None):
6
3
  self.headers = headers
7
4
  self.inner = inner
8
5
  self.append_headers = append_headers or {}
9
6
 
10
- def send(self, smarty_request):
11
- request = self.build_request(smarty_request)
7
+ def send(self, request):
8
+ for key, value in self.apply_headers().items():
9
+ request.headers[key] = value
12
10
  return self.inner.send(request)
13
11
 
14
- def build_request(self, smarty_request):
15
- request = Request(url=smarty_request.url_prefix, params=smarty_request.parameters)
16
- request.headers = self.apply_headers()
17
- if smarty_request.headers:
18
- for key, value in smarty_request.headers.items():
19
- request.headers[key] = value
20
- if smarty_request.payload:
21
- request.data = smarty_request.payload
22
- request.method = 'POST'
23
- else:
24
- request.method = 'GET'
25
- return request
26
-
27
12
  def apply_headers(self):
28
13
  result = {}
29
14
  for key, value in self.headers.items():
@@ -0,0 +1,2 @@
1
+ from .summary import BusinessSummaryResponse, BusinessEntry
2
+ from .detail import BusinessDetailResponse, BusinessDetailAttributes
@@ -0,0 +1,206 @@
1
+ class BusinessDetailAttributes:
2
+ def __init__(self, obj):
3
+ if obj is None:
4
+ obj = {}
5
+ self.accounting_expense_range = obj.get('accounting_expense_range', None)
6
+ self.accounting_expense_total = obj.get('accounting_expense_total', None)
7
+ self.advertising_expense_range = obj.get('advertising_expense_range', None)
8
+ self.advertising_expense_total = obj.get('advertising_expense_total', None)
9
+ self.business_insurance_expense_range = obj.get('business_insurance_expense_range', None)
10
+ self.business_insurance_expense_total = obj.get('business_insurance_expense_total', None)
11
+ self.business_status = obj.get('business_status', None)
12
+ self.business_type = obj.get('business_type', None)
13
+ self.carrier_route = obj.get('carrier_route', None)
14
+ self.census_block = obj.get('census_block', None)
15
+ self.census_tract = obj.get('census_tract', None)
16
+ self.city_name = obj.get('city_name', None)
17
+ self.company_name = obj.get('company_name', None)
18
+ self.company_name_secondary = obj.get('company_name_secondary', None)
19
+ self.contact_first_name = obj.get('contact_first_name', None)
20
+ self.contact_full_name = obj.get('contact_full_name', None)
21
+ self.contact_gender = obj.get('contact_gender', None)
22
+ self.contact_last_name = obj.get('contact_last_name', None)
23
+ self.contact_middle_name = obj.get('contact_middle_name', None)
24
+ self.contact_prefix = obj.get('contact_prefix', None)
25
+ self.contact_professional_title = obj.get('contact_professional_title', None)
26
+ self.contact_suffix = obj.get('contact_suffix', None)
27
+ self.core_based_stat_area_code = obj.get('core_based_stat_area_code', None)
28
+ self.core_based_stat_area_name = obj.get('core_based_stat_area_name', None)
29
+ self.corporate_employee_count_range = obj.get('corporate_employee_count_range', None)
30
+ self.corporate_employee_count_total = obj.get('corporate_employee_count_total', None)
31
+ self.county_fips = obj.get('county_fips', None)
32
+ self.county_name = obj.get('county_name', None)
33
+ self.credit_capacity = obj.get('credit_capacity', None)
34
+ self.credit_capacity_range = obj.get('credit_capacity_range', None)
35
+ self.credit_score = obj.get('credit_score', None)
36
+ self.credit_score_description = obj.get('credit_score_description', None)
37
+ self.date_of_last_update = obj.get('date_of_last_update', None)
38
+ self.delivery_line_1 = obj.get('delivery_line_1', None)
39
+ self.delivery_point = obj.get('delivery_point', None)
40
+ self.delivery_point_check_digit = obj.get('delivery_point_check_digit', None)
41
+ self.domestic_foreign_owner_indicator = obj.get('domestic_foreign_owner_indicator', None)
42
+ self.ein = obj.get('ein', None)
43
+ self.email = obj.get('email', None)
44
+ self.email_available_indicator = obj.get('email_available_indicator', None)
45
+ self.executive_department = obj.get('executive_department', None)
46
+ self.executive_level = obj.get('executive_level', None)
47
+ self.executive_verification_type = obj.get('executive_verification_type', None)
48
+ self.fax = obj.get('fax', None)
49
+ self.female_owned_indicator = obj.get('female_owned_indicator', None)
50
+ self.foreign_parent_city_name = obj.get('foreign_parent_city_name', None)
51
+ self.foreign_parent_company_name = obj.get('foreign_parent_company_name', None)
52
+ self.foreign_parent_country = obj.get('foreign_parent_country', None)
53
+ self.fortune_1000_branches = obj.get('fortune_1000_branches', None)
54
+ self.fortune_1000_indicator = obj.get('fortune_1000_indicator', None)
55
+ self.fortune_1000_rank = obj.get('fortune_1000_rank', None)
56
+ self.holding_city_name = obj.get('holding_city_name', None)
57
+ self.holding_company_name = obj.get('holding_company_name', None)
58
+ self.holding_id = obj.get('holding_id', None)
59
+ self.holding_state_abbreviation = obj.get('holding_state_abbreviation', None)
60
+ self.home_based_business_indicator = obj.get('home_based_business_indicator', None)
61
+ self.hq_city_name = obj.get('hq_city_name', None)
62
+ self.hq_company_name = obj.get('hq_company_name', None)
63
+ self.hq_id = obj.get('hq_id', None)
64
+ self.hq_number_of_companies = obj.get('hq_number_of_companies', None)
65
+ self.hq_state_abbreviation = obj.get('hq_state_abbreviation', None)
66
+ self.latitude = obj.get('latitude', None)
67
+ self.legal_expense_range = obj.get('legal_expense_range', None)
68
+ self.legal_expense_total = obj.get('legal_expense_total', None)
69
+ self.linkage_company_name = obj.get('linkage_company_name', None)
70
+ self.linkage_indicator = obj.get('linkage_indicator', None)
71
+ self.linkage_level = obj.get('linkage_level', None)
72
+ self.linkage_type = obj.get('linkage_type', None)
73
+ self.location_employee_count = obj.get('location_employee_count', None)
74
+ self.location_employee_count_range = obj.get('location_employee_count_range', None)
75
+ self.location_sales_range = obj.get('location_sales_range', None)
76
+ self.location_sales_total = obj.get('location_sales_total', None)
77
+ self.longitude = obj.get('longitude', None)
78
+ self.mail_score_code = obj.get('mail_score_code', None)
79
+ self.mail_score_description = obj.get('mail_score_description', None)
80
+ self.mailing_carrier_route = obj.get('mailing_carrier_route', None)
81
+ self.mailing_city_name = obj.get('mailing_city_name', None)
82
+ self.mailing_delivery_line_1 = obj.get('mailing_delivery_line_1', None)
83
+ self.mailing_delivery_point = obj.get('mailing_delivery_point', None)
84
+ self.mailing_delivery_point_check_digit = obj.get('mailing_delivery_point_check_digit', None)
85
+ self.mailing_plus4_code = obj.get('mailing_plus4_code', None)
86
+ self.mailing_state_abbreviation = obj.get('mailing_state_abbreviation', None)
87
+ self.mailing_zipcode = obj.get('mailing_zipcode', None)
88
+ self.manufacturing_indicator = obj.get('manufacturing_indicator', None)
89
+ self.minority_owned_indicator = obj.get('minority_owned_indicator', None)
90
+ self.minority_type = obj.get('minority_type', None)
91
+ self.naics_01_code = obj.get('naics_01_code', None)
92
+ self.naics_01_description = obj.get('naics_01_description', None)
93
+ self.naics_02_code = obj.get('naics_02_code', None)
94
+ self.naics_02_description = obj.get('naics_02_description', None)
95
+ self.naics_03_code = obj.get('naics_03_code', None)
96
+ self.naics_03_description = obj.get('naics_03_description', None)
97
+ self.naics_04_code = obj.get('naics_04_code', None)
98
+ self.naics_04_description = obj.get('naics_04_description', None)
99
+ self.naics_05_code = obj.get('naics_05_code', None)
100
+ self.naics_05_description = obj.get('naics_05_description', None)
101
+ self.naics_06_code = obj.get('naics_06_code', None)
102
+ self.naics_06_description = obj.get('naics_06_description', None)
103
+ self.new_business_indicator = obj.get('new_business_indicator', None)
104
+ self.non_profit_indicator = obj.get('non_profit_indicator', None)
105
+ self.num_of_pcs_range = obj.get('num_of_pcs_range', None)
106
+ self.num_of_pcs_total = obj.get('num_of_pcs_total', None)
107
+ self.number_of_years_in_business = obj.get('number_of_years_in_business', None)
108
+ self.number_of_years_in_business_range = obj.get('number_of_years_in_business_range', None)
109
+ self.office_equipment_expense_range = obj.get('office_equipment_expense_range', None)
110
+ self.office_equipment_expense_total = obj.get('office_equipment_expense_total', None)
111
+ self.operating_hours_friday = obj.get('operating_hours_friday', None)
112
+ self.operating_hours_monday = obj.get('operating_hours_monday', None)
113
+ self.operating_hours_saturday = obj.get('operating_hours_saturday', None)
114
+ self.operating_hours_sunday = obj.get('operating_hours_sunday', None)
115
+ self.operating_hours_thursday = obj.get('operating_hours_thursday', None)
116
+ self.operating_hours_tuesday = obj.get('operating_hours_tuesday', None)
117
+ self.operating_hours_wednesday = obj.get('operating_hours_wednesday', None)
118
+ self.phone = obj.get('phone', None)
119
+ self.phone_area_code = obj.get('phone_area_code', None)
120
+ self.phone_secondary = obj.get('phone_secondary', None)
121
+ self.phone_toll_free = obj.get('phone_toll_free', None)
122
+ self.plus4_code = obj.get('plus4_code', None)
123
+ self.population_range = obj.get('population_range', None)
124
+ self.precision = obj.get('precision', None)
125
+ self.primary_executive_indicator = obj.get('primary_executive_indicator', None)
126
+ self.primary_number = obj.get('primary_number', None)
127
+ self.primary_sic_2digit_code = obj.get('primary_sic_2digit_code', None)
128
+ self.primary_sic_2digit_description = obj.get('primary_sic_2digit_description', None)
129
+ self.primary_sic_4digit_code = obj.get('primary_sic_4digit_code', None)
130
+ self.primary_sic_4digit_description = obj.get('primary_sic_4digit_description', None)
131
+ self.primary_sic_code = obj.get('primary_sic_code', None)
132
+ self.primary_sic_description = obj.get('primary_sic_description', None)
133
+ self.public_indicator = obj.get('public_indicator', None)
134
+ self.rdi = obj.get('rdi', None)
135
+ self.rent_expense_range = obj.get('rent_expense_range', None)
136
+ self.rent_expense_total = obj.get('rent_expense_total', None)
137
+ self.secondary_01_sic_7digit_code = obj.get('secondary_01_sic_7digit_code', None)
138
+ self.secondary_01_sic_7digit_description = obj.get('secondary_01_sic_7digit_description', None)
139
+ self.secondary_02_sic_7digit_code = obj.get('secondary_02_sic_7digit_code', None)
140
+ self.secondary_02_sic_7digit_description = obj.get('secondary_02_sic_7digit_description', None)
141
+ self.secondary_03_sic_7digit_code = obj.get('secondary_03_sic_7digit_code', None)
142
+ self.secondary_03_sic_7digit_description = obj.get('secondary_03_sic_7digit_description', None)
143
+ self.secondary_04_sic_7digit_code = obj.get('secondary_04_sic_7digit_code', None)
144
+ self.secondary_04_sic_7digit_description = obj.get('secondary_04_sic_7digit_description', None)
145
+ self.secondary_05_sic_7digit_code = obj.get('secondary_05_sic_7digit_code', None)
146
+ self.secondary_05_sic_7digit_description = obj.get('secondary_05_sic_7digit_description', None)
147
+ self.secondary_designator = obj.get('secondary_designator', None)
148
+ self.secondary_number = obj.get('secondary_number', None)
149
+ self.sectional_center_facility = obj.get('sectional_center_facility', None)
150
+ self.small_business_indicator = obj.get('small_business_indicator', None)
151
+ self.source_title = obj.get('source_title', None)
152
+ self.square_footage = obj.get('square_footage', None)
153
+ self.square_footage_range = obj.get('square_footage_range', None)
154
+ self.standardized_title = obj.get('standardized_title', None)
155
+ self.standardized_title_rank = obj.get('standardized_title_rank', None)
156
+ self.state_abbreviation = obj.get('state_abbreviation', None)
157
+ self.stock_exchange = obj.get('stock_exchange', None)
158
+ self.street_name = obj.get('street_name', None)
159
+ self.street_postdirection = obj.get('street_postdirection', None)
160
+ self.street_predirection = obj.get('street_predirection', None)
161
+ self.street_suffix = obj.get('street_suffix', None)
162
+ self.sub_hq_city_name = obj.get('sub_hq_city_name', None)
163
+ self.sub_hq_company_name = obj.get('sub_hq_company_name', None)
164
+ self.sub_hq_id = obj.get('sub_hq_id', None)
165
+ self.sub_hq_number_of_companies = obj.get('sub_hq_number_of_companies', None)
166
+ self.sub_hq_state_abbreviation = obj.get('sub_hq_state_abbreviation', None)
167
+ self.technology_expense_range = obj.get('technology_expense_range', None)
168
+ self.technology_expense_total = obj.get('technology_expense_total', None)
169
+ self.telecom_expense_range = obj.get('telecom_expense_range', None)
170
+ self.telecom_expense_total = obj.get('telecom_expense_total', None)
171
+ self.ticker_symbol = obj.get('ticker_symbol', None)
172
+ self.time_zone = obj.get('time_zone', None)
173
+ self.url = obj.get('url', None)
174
+ self.url_facebook = obj.get('url_facebook', None)
175
+ self.url_instagram = obj.get('url_instagram', None)
176
+ self.url_linkedin = obj.get('url_linkedin', None)
177
+ self.url_twitter = obj.get('url_twitter', None)
178
+ self.url_yelp = obj.get('url_yelp', None)
179
+ self.url_youtube = obj.get('url_youtube', None)
180
+ self.utilities_expense_range = obj.get('utilities_expense_range', None)
181
+ self.utilities_expense_total = obj.get('utilities_expense_total', None)
182
+ self.webmail_indicator = obj.get('webmail_indicator', None)
183
+ self.year_current = obj.get('year_current', None)
184
+ self.year_current_employee_count = obj.get('year_current_employee_count', None)
185
+ self.year_established = obj.get('year_established', None)
186
+ self.year_four_prior = obj.get('year_four_prior', None)
187
+ self.year_four_prior_employee_count = obj.get('year_four_prior_employee_count', None)
188
+ self.year_four_prior_employee_growth = obj.get('year_four_prior_employee_growth', None)
189
+ self.year_one_prior = obj.get('year_one_prior', None)
190
+ self.year_one_prior_employee_count = obj.get('year_one_prior_employee_count', None)
191
+ self.year_one_prior_employee_growth = obj.get('year_one_prior_employee_growth', None)
192
+ self.year_three_prior = obj.get('year_three_prior', None)
193
+ self.year_three_prior_employee_count = obj.get('year_three_prior_employee_count', None)
194
+ self.year_three_prior_employee_growth = obj.get('year_three_prior_employee_growth', None)
195
+ self.year_two_prior = obj.get('year_two_prior', None)
196
+ self.year_two_prior_employee_count = obj.get('year_two_prior_employee_count', None)
197
+ self.year_two_prior_employee_growth = obj.get('year_two_prior_employee_growth', None)
198
+ self.zipcode = obj.get('zipcode', None)
199
+
200
+
201
+ class BusinessDetailResponse:
202
+ def __init__(self, obj):
203
+ self.smarty_key = obj.get('smarty_key', None)
204
+ self.data_set_name = obj.get('data_set_name', None)
205
+ self.business_id = obj.get('business_id', None)
206
+ self.attributes = BusinessDetailAttributes(obj.get('attributes', None))
@@ -0,0 +1,15 @@
1
+ class BusinessEntry:
2
+ def __init__(self, obj):
3
+ self.company_name = obj.get('company_name', None)
4
+ self.business_id = obj.get('business_id', None)
5
+
6
+
7
+ class BusinessSummaryResponse:
8
+ def __init__(self, obj):
9
+ self.smarty_key = obj.get('smarty_key', None)
10
+ self.data_set_name = obj.get('data_set_name', None)
11
+ businesses = obj.get('businesses', None)
12
+ if businesses is None:
13
+ self.businesses = []
14
+ else:
15
+ self.businesses = [BusinessEntry(b) for b in businesses]
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: smartystreets_python_sdk
3
- Version: 6.0.0
3
+ Version: 6.1.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/6.0.0
6
+ Download-URL: https://github.com/smartystreets/smartystreets-python-sdk/tarball/6.1.0
7
7
  Author: SmartyStreets SDK Team
8
8
  Author-email: support@smartystreets.com
9
9
  License: Apache 2
@@ -54,6 +54,9 @@ smartystreets_python_sdk/us_enrichment/__init__.py
54
54
  smartystreets_python_sdk/us_enrichment/client.py
55
55
  smartystreets_python_sdk/us_enrichment/lookup.py
56
56
  smartystreets_python_sdk/us_enrichment/response.py
57
+ smartystreets_python_sdk/us_enrichment/business/__init__.py
58
+ smartystreets_python_sdk/us_enrichment/business/detail.py
59
+ smartystreets_python_sdk/us_enrichment/business/summary.py
57
60
  smartystreets_python_sdk/us_extract/__init__.py
58
61
  smartystreets_python_sdk/us_extract/address.py
59
62
  smartystreets_python_sdk/us_extract/client.py
@@ -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__="6.0.0"
2
+ __version__="6.1.0"