opportify-sdk 0.1.1__py3-none-any.whl → 0.3.1__py3-none-any.whl

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.

Potentially problematic release.


This version of opportify-sdk might be problematic. Click here for more details.

Files changed (113) hide show
  1. openapi_client/__init__.py +186 -0
  2. openapi_client/api/email_insights_api.py +1491 -0
  3. openapi_client/api/ip_insights_api.py +1494 -0
  4. {lib/v1/openapi_client → openapi_client}/api_client.py +14 -7
  5. {lib/v1/openapi_client → openapi_client}/configuration.py +16 -5
  6. {lib/v1/openapi_client → openapi_client}/exceptions.py +18 -1
  7. openapi_client/models/__init__.py +84 -0
  8. {lib/v1/openapi_client → openapi_client}/models/abuse_contact.py +1 -1
  9. openapi_client/models/address_signals.py +99 -0
  10. {lib/v1/openapi_client → openapi_client}/models/admin_contact.py +1 -1
  11. openapi_client/models/analyze_email200_response.py +127 -0
  12. lib/v1/openapi_client/models/analyze_email400_response_error.py → openapi_client/models/analyze_email400_response.py +9 -9
  13. openapi_client/models/analyze_email403_response.py +207 -0
  14. openapi_client/models/analyze_email500_response.py +89 -0
  15. openapi_client/models/analyze_email_request.py +94 -0
  16. {lib/v1/openapi_client → openapi_client}/models/analyze_ip200_response.py +4 -4
  17. lib/v1/openapi_client/models/analyze_ip400_response_error.py → openapi_client/models/analyze_ip400_response.py +20 -20
  18. {lib/v1/openapi_client → openapi_client}/models/analyze_ip_request.py +1 -1
  19. {lib/v1/openapi_client → openapi_client}/models/asn.py +1 -1
  20. openapi_client/models/batch_analyze_emails202_response.py +93 -0
  21. openapi_client/models/batch_analyze_emails400_response.py +137 -0
  22. openapi_client/models/batch_analyze_emails401_response.py +89 -0
  23. openapi_client/models/batch_analyze_emails402_response.py +137 -0
  24. openapi_client/models/batch_analyze_emails403_response.py +193 -0
  25. openapi_client/models/batch_analyze_emails413_response.py +89 -0
  26. openapi_client/models/batch_analyze_emails429_response.py +89 -0
  27. openapi_client/models/batch_analyze_emails_request.py +93 -0
  28. openapi_client/models/batch_analyze_ips202_response.py +93 -0
  29. openapi_client/models/batch_analyze_ips400_response.py +137 -0
  30. openapi_client/models/batch_analyze_ips_request.py +91 -0
  31. {lib/v1/openapi_client → openapi_client}/models/block_listed.py +3 -4
  32. openapi_client/models/create_email_batch_export400_response.py +89 -0
  33. openapi_client/models/create_email_batch_export403_response.py +89 -0
  34. openapi_client/models/create_email_batch_export404_response.py +89 -0
  35. openapi_client/models/create_email_batch_export409_response.py +137 -0
  36. openapi_client/models/email_dns.py +97 -0
  37. openapi_client/models/email_domain.py +113 -0
  38. openapi_client/models/export_created_response.py +91 -0
  39. openapi_client/models/export_filter.py +95 -0
  40. openapi_client/models/export_request.py +92 -0
  41. openapi_client/models/export_status_response.py +119 -0
  42. openapi_client/models/exportnotfound.py +89 -0
  43. openapi_client/models/forbidden.py +89 -0
  44. {lib/v1/openapi_client → openapi_client}/models/geo.py +1 -1
  45. openapi_client/models/get_email_batch_export_status400_response.py +89 -0
  46. openapi_client/models/get_email_batch_export_status404_response.py +137 -0
  47. openapi_client/models/get_email_batch_status200_response.py +101 -0
  48. openapi_client/models/get_email_batch_status200_response_download_urls.py +93 -0
  49. openapi_client/models/get_email_batch_status404_response.py +89 -0
  50. openapi_client/models/get_ip_batch_status200_response.py +101 -0
  51. openapi_client/models/internalerror.py +89 -0
  52. openapi_client/models/internalerror1.py +89 -0
  53. openapi_client/models/invaliddata.py +89 -0
  54. openapi_client/models/invaliddata1.py +89 -0
  55. openapi_client/models/invalidemail.py +89 -0
  56. openapi_client/models/invalidplan.py +89 -0
  57. openapi_client/models/invalidplan1.py +89 -0
  58. openapi_client/models/invalidtoken.py +89 -0
  59. openapi_client/models/ipvalidationfailed.py +89 -0
  60. openapi_client/models/jobnotfound.py +89 -0
  61. openapi_client/models/jobnotready.py +89 -0
  62. openapi_client/models/malformedrequest.py +89 -0
  63. openapi_client/models/malformedrequest1.py +89 -0
  64. openapi_client/models/malformedrequest2.py +89 -0
  65. openapi_client/models/malformedrequest3.py +89 -0
  66. openapi_client/models/manifestnotavailable.py +89 -0
  67. openapi_client/models/notfound.py +89 -0
  68. {lib/v1/openapi_client → openapi_client}/models/organization.py +1 -1
  69. openapi_client/models/quotaexceeded.py +89 -0
  70. openapi_client/models/risk_report_email.py +92 -0
  71. openapi_client/models/risk_report_ip.py +89 -0
  72. {lib/v1/openapi_client → openapi_client}/models/tech_contact.py +1 -1
  73. openapi_client/models/toomanyrequests.py +89 -0
  74. {lib/v1/openapi_client → openapi_client}/models/trusted_provider.py +1 -1
  75. {lib/v1/openapi_client → openapi_client}/models/whois.py +2 -2
  76. {lib/v1/openapi_client → openapi_client}/rest.py +2 -1
  77. opportify_sdk/email_insights.py +427 -0
  78. opportify_sdk/ip_insights.py +410 -0
  79. opportify_sdk-0.3.1.dist-info/METADATA +300 -0
  80. opportify_sdk-0.3.1.dist-info/RECORD +86 -0
  81. {opportify_sdk-0.1.1.dist-info → opportify_sdk-0.3.1.dist-info}/WHEEL +1 -1
  82. opportify_sdk-0.3.1.dist-info/top_level.txt +2 -0
  83. lib/__init__.py +0 -0
  84. lib/v1/__init__.py +0 -0
  85. lib/v1/openapi_client/__init__.py +0 -63
  86. lib/v1/openapi_client/api/email_insights_api.py +0 -317
  87. lib/v1/openapi_client/api/ip_insights_api.py +0 -322
  88. lib/v1/openapi_client/models/__init__.py +0 -45
  89. lib/v1/openapi_client/models/analyze_email200_response.py +0 -113
  90. lib/v1/openapi_client/models/analyze_email400_response.py +0 -91
  91. lib/v1/openapi_client/models/analyze_email500_response.py +0 -91
  92. lib/v1/openapi_client/models/analyze_email500_response_error.py +0 -89
  93. lib/v1/openapi_client/models/analyze_email_request.py +0 -92
  94. lib/v1/openapi_client/models/analyze_ip400_response.py +0 -91
  95. lib/v1/openapi_client/models/analyze_ip404_response.py +0 -91
  96. lib/v1/openapi_client/models/analyze_ip500_response.py +0 -91
  97. lib/v1/openapi_client/models/email_dns.py +0 -87
  98. lib/v1/openapi_client/models/internalerror.py +0 -89
  99. lib/v1/openapi_client/models/invalidemail.py +0 -89
  100. lib/v1/openapi_client/models/ipvalidationfailed.py +0 -89
  101. lib/v1/openapi_client/models/malformedrequest.py +0 -89
  102. lib/v1/openapi_client/models/malformedrequest1.py +0 -89
  103. lib/v1/openapi_client/models/notfound.py +0 -89
  104. lib/v1/openapi_client/models/risk_report.py +0 -89
  105. opportify_sdk-0.1.1.dist-info/METADATA +0 -108
  106. opportify_sdk-0.1.1.dist-info/RECORD +0 -49
  107. opportify_sdk-0.1.1.dist-info/top_level.txt +0 -2
  108. src/email_insights.py +0 -97
  109. src/ip_insights.py +0 -93
  110. {lib/v1/openapi_client → openapi_client}/api/__init__.py +0 -0
  111. {lib/v1/openapi_client → openapi_client}/api_response.py +0 -0
  112. {lib/v1/openapi_client → openapi_client}/py.typed +0 -0
  113. {src → opportify_sdk}/__init__.py +0 -0
@@ -0,0 +1,300 @@
1
+ Metadata-Version: 2.4
2
+ Name: opportify_sdk
3
+ Version: 0.3.1
4
+ Summary: Opportify Insights API
5
+ Home-page: https://github.com/opportify/opportify-sdk-python
6
+ Author: Opportify & OpenAPI-Generator
7
+ Author-email:
8
+ Keywords: OpenAPI,OpenAPI-Generator,Opportify Insights API,Opportify
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: urllib3<3.0.0,>=1.25.3
11
+ Requires-Dist: python-dateutil>=2.8.2
12
+ Requires-Dist: pydantic>=2
13
+ Requires-Dist: typing-extensions>=4.7.1
14
+ Dynamic: author
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: keywords
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
21
+
22
+ # Opportify-SDK-Python
23
+
24
+ ## Table of Contents
25
+
26
+ - [Overview](#overview)
27
+ - [Requirements](#requirements)
28
+ - [Getting Started](#getting-started)
29
+ - [Calling Email Insights](#calling-email-insights)
30
+ - [Calling IP Insights](#calling-ip-insights)
31
+ - [Batch Analysis (Email & IP)](#batch-analysis-email--ip)
32
+ - [Batch Email Analysis (JSON)](#1-batch-email-analysis-json)
33
+ - [Batch Email Analysis (Plain Text)](#2-batch-email-analysis-plain-text)
34
+ - [Batch Email Analysis (File Upload)](#3-batch-email-analysis-file-upload)
35
+ - [Batch IP Analysis (JSON)](#4-batch-ip-analysis-json)
36
+ - [Batch IP Analysis (Plain Text)](#5-batch-ip-analysis-plain-text)
37
+ - [Batch IP Analysis (File Upload)](#6-batch-ip-analysis-file-upload)
38
+ - [Batch Export Jobs](#batch-export-jobs)
39
+ - [Email Batch Exports](#email-batch-exports)
40
+ - [IP Batch Exports](#ip-batch-exports)
41
+ - [Enabling Debug Mode](#enabling-debug-mode)
42
+ - [Handling Errors](#handling-errors)
43
+ - [About this package](#about-this-package)
44
+
45
+ ## Overview
46
+
47
+ The **Opportify Insights API** provides access to a powerful and up-to-date platform. With advanced data warehousing and AI-driven capabilities, this API is designed to empower your business to make informed, data-driven decisions and effectively assess potential risks.
48
+
49
+ [Sign Up Free](https://www.opportify.ai)
50
+
51
+ ### Base URL
52
+ Use the following base URL for all API requests:
53
+
54
+ ```plaintext
55
+ https://api.opportify.ai/insights/v1/<service>/<endpoint>
56
+ ```
57
+
58
+ ## Requirements
59
+
60
+ Requires Python [v3.8 or later](https://www.python.org/downloads/)
61
+
62
+ ## Getting Started
63
+
64
+ First, install Opportify via the pip package manager:
65
+
66
+ ```shell
67
+ pip install opportify-sdk
68
+ ```
69
+
70
+ ### Calling Email Insights
71
+
72
+ ```python
73
+ from opportify_sdk import EmailInsights
74
+
75
+ email_insights = EmailInsights("YOUR-API-KEY-HERE")
76
+
77
+ params = {
78
+ "email": "test@gmial.com", # *gmial* - just an example to be auto-corrected
79
+ "enableAi": True,
80
+ "enableAutoCorrection": True,
81
+ "enableDomainEnrichment": True # Optional: include domain enrichment block
82
+ }
83
+
84
+ result = email_insights.analyze(params)
85
+ ```
86
+
87
+ ### Calling IP Insights
88
+
89
+ ```python
90
+ from opportify_sdk import IpInsights
91
+
92
+ ip_insights = IpInsights("<YOUR-KEY-HERE>")
93
+
94
+ params = {
95
+ "ip": "3.1.122.82",
96
+ "enableAi": True
97
+ }
98
+
99
+ result = ip_insights.analyze(params)
100
+ ```
101
+
102
+
103
+ ## Batch Analysis (Email & IP)
104
+
105
+ You can submit multiple emails or IPs in a single request. Batch jobs are processed asynchronously; the response returns a job identifier (`job_id`) you can poll for status.
106
+
107
+ #### 1. Batch Email Analysis (JSON)
108
+
109
+ ```python
110
+ from opportify_sdk import EmailInsights
111
+
112
+ email_insights = EmailInsights("<YOUR-KEY-HERE>")
113
+
114
+ params = {
115
+ 'emails': [
116
+ 'one@example.com',
117
+ 'two@example.org'
118
+ ],
119
+ 'name': 'Customer Email Validation', # Optional: descriptive name for the job
120
+ 'enableAi': True,
121
+ 'enableAutoCorrection': True
122
+ }
123
+
124
+ # Default content type is application/json
125
+ batch = email_insights.batch_analyze(params)
126
+
127
+ # Optional: poll status later
128
+ status = email_insights.get_batch_status(batch['job_id'])
129
+ ```
130
+
131
+ #### 2. Batch Email Analysis (Plain Text)
132
+ Provide one email per line and set the content type to `text/plain`.
133
+
134
+ ```python
135
+ content = "one@example.com\nTwo.User@example.org" # newline-delimited emails
136
+ batch = email_insights.batch_analyze({'text': content}, 'text/plain')
137
+ status = email_insights.get_batch_status(batch['job_id'])
138
+ ```
139
+
140
+ #### 3. Batch Email Analysis (File Upload)
141
+ Supply a `.csv` (one email per row; header optional) via `batch_analyze_file()`. A `.csv` triggers `multipart/form-data`; other extensions fall back to `text/plain` (newline-delimited body).
142
+
143
+ ```python
144
+ batch = email_insights.batch_analyze_file('emails.csv', {
145
+ 'name': 'Monthly Email Cleanup', # Optional: descriptive name for the job
146
+ 'enableAi': True,
147
+ 'enableAutoCorrection': True
148
+ })
149
+ status = email_insights.get_batch_status(batch['job_id'])
150
+ ```
151
+
152
+ #### 4. Batch IP Analysis (JSON)
153
+
154
+ ```python
155
+ from opportify_sdk import IpInsights
156
+
157
+ ip_insights = IpInsights("<YOUR-KEY-HERE>")
158
+
159
+ params = {
160
+ 'ips': [
161
+ '1.1.1.1',
162
+ '8.8.8.8'
163
+ ],
164
+ 'name': 'Network Security Scan', # Optional: descriptive name for the job
165
+ 'enableAi': True
166
+ }
167
+
168
+ batch = ip_insights.batch_analyze(params) # application/json
169
+ status = ip_insights.get_batch_status(batch['job_id'])
170
+ ```
171
+
172
+ #### 5. Batch IP Analysis (Plain Text)
173
+
174
+ ```python
175
+ content = "1.1.1.1\n8.8.8.8" # newline-delimited IPs
176
+ batch = ip_insights.batch_analyze({'text': content}, 'text/plain')
177
+ status = ip_insights.get_batch_status(batch['job_id'])
178
+ ```
179
+
180
+ #### 6. Batch IP Analysis (File Upload)
181
+
182
+ ```python
183
+ batch = ip_insights.batch_analyze_file('ips.csv', {
184
+ 'name': 'Firewall IP Assessment', # Optional: descriptive name for the job
185
+ 'enableAi': True
186
+ })
187
+ status = ip_insights.get_batch_status(batch['job_id'])
188
+ ```
189
+
190
+ #### Convenience & Notes
191
+ - `batch_analyze_file()` auto-selects content type: `.csv` -> `multipart/form-data`; otherwise `text/plain`.
192
+ - For `text/plain`, pass newline-delimited values via the `text` key.
193
+ - For `multipart/form-data`, pass a readable file path via the `file` key (handled internally by `batch_analyze_file()`).
194
+ - The `name` parameter is optional for all batch operations and helps with job identification and tracking.
195
+ - `enableAutoCorrection` applies only to Email Insights.
196
+ - Always wrap calls in a try-except (see Error Handling) to capture API errors.
197
+ - Polling cadence depends on payload size; a short delay (1–3s) between status checks is recommended.
198
+
199
+ ## Batch Export Jobs
200
+
201
+ Use batch exports to materialize filtered results from completed jobs. Exports run asynchronously and expose polling helpers similar to batch status checks.
202
+
203
+ ### Email Batch Exports
204
+
205
+ ```python
206
+ email_insights = EmailInsights('<YOUR-KEY-HERE>')
207
+
208
+ # Trigger a new export for a completed batch job
209
+ export = email_insights.create_batch_export('job-uuid-here', {
210
+ 'exportType': 'csv',
211
+ 'columns': [
212
+ 'emailAddress',
213
+ 'emailProvider',
214
+ 'riskReport.score',
215
+ 'isDeliverable'
216
+ ],
217
+ 'filters': {
218
+ 'isDeliverable': 'true',
219
+ 'riskReport.score': {'min': 400}
220
+ }
221
+ })
222
+
223
+ # Poll until the export is ready
224
+ status = email_insights.get_batch_export_status('job-uuid-here', export['export_id'])
225
+
226
+ if status['status'] == 'COMPLETED':
227
+ # Use status['download_url'] for the pre-signed file link
228
+ print(f"Download: {status['download_url']}")
229
+ ```
230
+
231
+ ### IP Batch Exports
232
+
233
+ ```python
234
+ ip_insights = IpInsights('<YOUR-KEY-HERE>')
235
+
236
+ export = ip_insights.create_batch_export('job-uuid-here', {
237
+ 'exportType': 'json',
238
+ 'columns': [
239
+ 'result.ipAddress',
240
+ 'result.connectionType',
241
+ 'result.riskReport.score'
242
+ ],
243
+ 'filters': {
244
+ 'result.riskReport.level': ['low', 'medium']
245
+ }
246
+ })
247
+
248
+ status = ip_insights.get_batch_export_status('job-uuid-here', export['export_id'])
249
+
250
+ if status['status'] == 'COMPLETED':
251
+ # Use status['download_url'] to retrieve the generated export
252
+ print(f"Download: {status['download_url']}")
253
+ elif status['status'] == 'FAILED':
254
+ # Review status['error_code'] and status['error_message'] for remediation guidance
255
+ print(f"Error: {status['error_code']} - {status['error_message']}")
256
+ ```
257
+
258
+
259
+ ## Enabling Debug Mode
260
+
261
+ ```python
262
+ client_insights.set_debug_mode(True)
263
+ ```
264
+
265
+ ## Handling Errors
266
+
267
+ We strongly recommend that any usage of this SDK happens within a try-except to properly handle any exceptions or errors.
268
+
269
+ ```python
270
+ from openapi_client.exceptions import ApiException
271
+
272
+ try:
273
+ # Email or IP Insights usage...
274
+ result = email_insights.analyze(params)
275
+ except ApiException as e:
276
+ print(f"API Error: {e.status} - {e.reason}")
277
+ print(f"Response: {e.body}")
278
+ except Exception as e:
279
+ print(f"Error: {str(e)}")
280
+ ```
281
+
282
+ Below are common error responses you might encounter:
283
+
284
+ | Status Code | Error Type | Description |
285
+ |------------|------------|-------------|
286
+ | `400` | Bad Request | Invalid parameters or malformed request |
287
+ | `401` | Unauthorized | Invalid or missing API key |
288
+ | `402` | Payment Required | Account has insufficient credits |
289
+ | `403` | Forbidden | Plan limitation or feature not available |
290
+ | `404` | Not Found | Resource not found (e.g., invalid job ID) |
291
+ | `413` | Payload Too Large | Request exceeds maximum size (3MB) |
292
+ | `429` | Too Many Requests | Rate limit exceeded |
293
+ | `500` | Internal Server Error | Server-side error occurred |
294
+
295
+ ## About this package
296
+
297
+ This Python package is a customization of the base generated by:
298
+
299
+ - [OpenAPI Generator](https://openapi-generator.tech) project.
300
+
@@ -0,0 +1,86 @@
1
+ openapi_client/__init__.py,sha256=wsRmo1p8_83udLGPgXnFoDTjSo8xmvu9qC6jgoycJ8w,13034
2
+ openapi_client/api_client.py,sha256=Y2bAooKiF6d2NopIpEh-04x3DEmjCf_H08l1BnjeQ0w,30770
3
+ openapi_client/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
4
+ openapi_client/configuration.py,sha256=FQSsdWBVCXSRkM5W6su6ADll77c8oKwQKcIkr4MFrPY,22116
5
+ openapi_client/exceptions.py,sha256=bulb1NA5LG77JM9puU1kLzNpPY8xe5T1B7zN99xqSk0,9451
6
+ openapi_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
+ openapi_client/rest.py,sha256=E0G2pCDWyeXLAb0zOw_dzM3GK84WDsKvCzvQQJC0iG8,12448
8
+ openapi_client/api/__init__.py,sha256=_2MpmNT7so7K9CyzP-_2Sd_1EU8-Gq10jtUKccY86-Q,176
9
+ openapi_client/api/email_insights_api.py,sha256=BmPLxuh-15B4i6tIngaFHLeAAlU8WYUBa3wNUAOEWuA,78736
10
+ openapi_client/api/ip_insights_api.py,sha256=uTEq8iq20cJNuBPDuSM7topnZx6ZoJwJjngQzjG9jRg,78724
11
+ openapi_client/models/__init__.py,sha256=J_UJAN6qP4Ijf7nTHkX1eD0qmrNoOZymVAgsfDlId-c,8497
12
+ openapi_client/models/abuse_contact.py,sha256=eFANN7T_IHf9e7PQoRA89kBOOFDPgHPF3KjZg7C6Fjc,6574
13
+ openapi_client/models/address_signals.py,sha256=3tOdEqSYWOgNyUtMuqLxClYeHdPzvY4WPoBj6XjqNfY,7625
14
+ openapi_client/models/admin_contact.py,sha256=5TYVZYoRA42x0AtLQufe9KnGsEqQJ-Z2E-74s1gco3I,6574
15
+ openapi_client/models/analyze_email200_response.py,sha256=3TmtkSmEyM0e_dfdLGmTkob57ugk5ZMAZlK2PmRqfBA,10184
16
+ openapi_client/models/analyze_email400_response.py,sha256=rMLeJMAx2aYIwXjQ8FvAc2m3nfpyCwdoodSEzgZ9jrg,8365
17
+ openapi_client/models/analyze_email403_response.py,sha256=0wVqwdRJEqov1eqEtobqoASoWWWrqnq72lVJf2CFb7o,12029
18
+ openapi_client/models/analyze_email500_response.py,sha256=3qCTuKOMxYnWZb-VOcrei2BZjKgfoL45y1pEw6c6odg,5729
19
+ openapi_client/models/analyze_email_request.py,sha256=G2XuxfFnWjRTDej_LObTwR961iFj_MCqwniSD3a4C9s,6509
20
+ openapi_client/models/analyze_ip200_response.py,sha256=K3N2BgQpE3x4oI7LHq4EmAIWTJsuk3BHdKCk51WiqAQ,9166
21
+ openapi_client/models/analyze_ip400_response.py,sha256=KPR3oSVcbbyfAmmJYR77a0pLm_rk-w8QxwNbbnzuIc4,8460
22
+ openapi_client/models/analyze_ip_request.py,sha256=So-JYoOPAodi-7BXcE6PrCs06ZMl4kfy-HKmJQ7WBU4,5755
23
+ openapi_client/models/asn.py,sha256=69gzMBcgDVjC5hnlqHtD3ExNrlydXuNQyK1SX6UBS34,6251
24
+ openapi_client/models/batch_analyze_emails202_response.py,sha256=Y-8rGn6_tN24uAwMqBY89A2ToFythmLxfY1LVrJ8TgI,6277
25
+ openapi_client/models/batch_analyze_emails400_response.py,sha256=O970eDu4WS9nprk74H_p0N3rVmgeP8B5jZzMxu2WgD4,8413
26
+ openapi_client/models/batch_analyze_emails401_response.py,sha256=8AQJrJ0VXrN8S7gzVMcZI_PyOw2M3_okTVpECFioqXg,5753
27
+ openapi_client/models/batch_analyze_emails402_response.py,sha256=w6D8TqwwNASQvmXu0j4_OIaCdDJm_Q0M77LEp9I2RxQ,8362
28
+ openapi_client/models/batch_analyze_emails403_response.py,sha256=2r_vc5qskdBdmmGpcFDNVxk_Lq9JE-KP3JPXMdhcv3M,11334
29
+ openapi_client/models/batch_analyze_emails413_response.py,sha256=n79z_U49ECEm_kUE80KOFrhWFtLFegOSKMb5zWQwV6U,5753
30
+ openapi_client/models/batch_analyze_emails429_response.py,sha256=4KVg7WZ7ZwmdTJDt9WHGZT3C2PmCCGnkVcWt2Y4NESU,5753
31
+ openapi_client/models/batch_analyze_emails_request.py,sha256=HG0NrP-j_1dlLkG-gFmaTvBMtTsdKPpbSBqo49Qq6kk,6192
32
+ openapi_client/models/batch_analyze_ips202_response.py,sha256=zsyl1OIX5oSfVP8RGE-JiBkQno2SmlqEDUdyUW-vP_k,6265
33
+ openapi_client/models/batch_analyze_ips400_response.py,sha256=NeEKN45tu4GUZEhexqtmIAiyEULwC_EkS0HkgVb3RKQ,8406
34
+ openapi_client/models/batch_analyze_ips_request.py,sha256=-3nSIQ8XNacoQRf_W2QMXKSApQe2-v7icS1nVwT3VeM,5904
35
+ openapi_client/models/block_listed.py,sha256=YdOYTjZNHzQxOpLbbCYKhez7tbshqbt-oqMLgCWCSss,6866
36
+ openapi_client/models/create_email_batch_export400_response.py,sha256=hOHC77nVzgcbYYA67V7AJxHvyEvA_WY_6C9aXRl_5_w,5769
37
+ openapi_client/models/create_email_batch_export403_response.py,sha256=ocEspTGOOj2pfekSGNyNrmHJVVJ-zsfzAQDA1pPlbBI,5769
38
+ openapi_client/models/create_email_batch_export404_response.py,sha256=VF5bdO4QnVeOkifzTqMSr1qS1pJ-13hHdP0rBn33Kog,5769
39
+ openapi_client/models/create_email_batch_export409_response.py,sha256=MarqTsQ4dl9n28tlRzHB9Yj9FjV7zqNh0-ajDrhQMNE,8496
40
+ openapi_client/models/email_dns.py,sha256=z3IGhD4fNuPm2GjJ-asOgtpweTBSysjZfnEv8izR4Fk,6935
41
+ openapi_client/models/email_domain.py,sha256=IVOlQa1iN78myj5H5vIjfEyOeA8jWheD_xKyGwMPqdg,9678
42
+ openapi_client/models/export_created_response.py,sha256=oapKY5eWiT765IBPnD-uUMSQbaNqqPiX5jrJx4aDOYY,6051
43
+ openapi_client/models/export_filter.py,sha256=bbtNGcMSt03AHa4ihP_PQhMC81PUnPq1Wl74-h5IdM4,6336
44
+ openapi_client/models/export_request.py,sha256=d8EU8MofhAMwkbvO3_-itT4QRJfeZ0RcGrdPVWoEtdo,6442
45
+ openapi_client/models/export_status_response.py,sha256=kwNnUvH8ifnWRdyxe5EtsaSVDLIqru_MJwhNIKEW1dA,8996
46
+ openapi_client/models/exportnotfound.py,sha256=eVsmVwdXT4UFDE7U4C3wVu1NA14aLyNyTrrreqBvqc8,5693
47
+ openapi_client/models/forbidden.py,sha256=pb4Xjxx_s2P17lnyKASrVi9t1D_bCkbHq4UMDxIAfD4,5673
48
+ openapi_client/models/geo.py,sha256=IM5MNzvO9AIxNhj5gxdWZ0YtGwqCI9YL_fk93kLv6dw,9893
49
+ openapi_client/models/get_email_batch_export_status400_response.py,sha256=UGvjTnoZEmXNH6QdYqLMYHU1WmpH5kSTVKeQFCenRS8,5781
50
+ openapi_client/models/get_email_batch_export_status404_response.py,sha256=A0p8ePEHe7Oh1zLYnb1kLbI6Hbrkript_jr5AtAWsQU,8418
51
+ openapi_client/models/get_email_batch_status200_response.py,sha256=ac0k9kYzpSw7NBSX0AM0N2ucD4BEkQoqMIgzTfCESCU,7073
52
+ openapi_client/models/get_email_batch_status200_response_download_urls.py,sha256=j-Dc9MnA-Z0AsWNrSAi_3fAIeIky6iLd7APBOgtMKvE,6392
53
+ openapi_client/models/get_email_batch_status404_response.py,sha256=5jTygEf24vfkj2gdGN-8WuTJSBrdOJ2KDFX3lL8ad8A,5757
54
+ openapi_client/models/get_ip_batch_status200_response.py,sha256=WRKKwC1WKFJZf2L9BBXnqDM9l1XE099JwVl5PAE141M,7061
55
+ openapi_client/models/internalerror.py,sha256=0HRIZFjt495shZuEUVDYOCFQ8Xz9UMFjfm2jsKBBZF8,5689
56
+ openapi_client/models/internalerror1.py,sha256=cyFySqczi0UTuKJxXcC5LS6sozqJGmw60kyCYqU32pQ,5693
57
+ openapi_client/models/invaliddata.py,sha256=iydEUJnQGR1E2V9M3sXUFRoS9nskZXE-BVzJ9QTGSPk,5681
58
+ openapi_client/models/invaliddata1.py,sha256=W4wHSJ2wjnI52cRDx1iVV9XTZBPDIUYfNnsStrr_um4,5685
59
+ openapi_client/models/invalidemail.py,sha256=fma2UcdxyevV84EY-Ap68UUEUiSTOg5w1lXOxyJ_MlI,5685
60
+ openapi_client/models/invalidplan.py,sha256=GHdH8D0PYIiyVC6CksHJqjm4YflaXCwOnHr9OMJ5lBE,5681
61
+ openapi_client/models/invalidplan1.py,sha256=QQldNGSOiwsUQMGfq6eluWUf2qgGyiTKr8o-G1RwMh4,5685
62
+ openapi_client/models/invalidtoken.py,sha256=yZPOwhLrhNMQK8SFO_gvErvMhhe8_-dd_g6LlN8Pb8A,5685
63
+ openapi_client/models/ipvalidationfailed.py,sha256=dzEpDgxK0AHge1cofs8kCLADxgOqjNRPW56qFCo8_5g,5709
64
+ openapi_client/models/jobnotfound.py,sha256=jM48C7CXhWOVDlDJWPF47WinYd45I0zeQeim9SBLqY8,5681
65
+ openapi_client/models/jobnotready.py,sha256=VOAAKfqksuCSIVV65SITK7StMdb97NgipN9fYJ3Yrwo,5681
66
+ openapi_client/models/malformedrequest.py,sha256=ne0f9kinBCWQ_OD0l9ayEkSBswwyguWlqBzObFVENt4,5701
67
+ openapi_client/models/malformedrequest1.py,sha256=4_g0EvdJiJ9Lr7oQk2SOvKmChuivnlZRgTI76hOxoRU,5705
68
+ openapi_client/models/malformedrequest2.py,sha256=stM9AxgT37DgT_eAm7lNl4KFP2M0FlxwYEGAcVFFS1Y,5705
69
+ openapi_client/models/malformedrequest3.py,sha256=lBeU0qKzaLbbyzOkZMlXiID_86s_HOpR2_RN50MB7mA,5705
70
+ openapi_client/models/manifestnotavailable.py,sha256=gieizvUhxn99PV6vkqGltPrENwfbs0HlDcwK6sOhP24,5717
71
+ openapi_client/models/notfound.py,sha256=iGSh5DFWY3LR4ho7dgL_uZb6X1WwCUvq9CbDwdxDB8s,5669
72
+ openapi_client/models/organization.py,sha256=GsSVDda1xq4QAM53OxM9J5ODoz4dtA7spfH1TCu07LE,7144
73
+ openapi_client/models/quotaexceeded.py,sha256=WiDSz02Fn3DNr6C0RFCqoFWvSHm6m3jY0uwQk9ftPus,5689
74
+ openapi_client/models/risk_report_email.py,sha256=U_KwYTS26tKEcNlc4VXRmkTh5kn7QY5Cm-P5B595XdM,10166
75
+ openapi_client/models/risk_report_ip.py,sha256=MJRduy5LBXtT4sSwhrwQ416hFe0ibp2KCTe_QtKseQc,9002
76
+ openapi_client/models/tech_contact.py,sha256=BV7SWTM5FV9GA__a5spB2ouApzvkg6vs9GW7Fmnt6Aw,6563
77
+ openapi_client/models/toomanyrequests.py,sha256=-AupD-6sWaMFSlQlNhWYejZlbd-n93er4WwGKBE5NVg,5697
78
+ openapi_client/models/trusted_provider.py,sha256=fFcUAi6efmYldLM1qCqDfYbVbfET12O_60MFZw_LFSc,6188
79
+ openapi_client/models/whois.py,sha256=oI2N973wKRAdZsN0LfQRH9PMzyjEimmuG_Jo4GOu5io,8447
80
+ opportify_sdk/__init__.py,sha256=b5dO5TZ0ac8L7meGstmpAzIWXS9jwPqV1EruY32dffk,139
81
+ opportify_sdk/email_insights.py,sha256=OPb6NEQH_kmWODHuyIZBiNRjLz2M6QRl1S0IK7gcEVs,16717
82
+ opportify_sdk/ip_insights.py,sha256=OWWPQa2pAzHFX-z_mWaaoeTqqZRFWKLYpGJwAzhBspw,15507
83
+ opportify_sdk-0.3.1.dist-info/METADATA,sha256=h6GDrJCRL8v9V5rMK1M9zfDguYdT-bYq_bszt0bEJf8,9105
84
+ opportify_sdk-0.3.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
85
+ opportify_sdk-0.3.1.dist-info/top_level.txt,sha256=90CufmKPfMOr0lxs06ndbpvXPdVbmArXAorIu2p-giU,29
86
+ opportify_sdk-0.3.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -0,0 +1,2 @@
1
+ openapi_client
2
+ opportify_sdk
lib/__init__.py DELETED
File without changes
lib/v1/__init__.py DELETED
File without changes
@@ -1,63 +0,0 @@
1
- # coding: utf-8
2
-
3
- # flake8: noqa
4
-
5
- """
6
- Opportify Insights API
7
-
8
- ## Overview The **Opportify Insights API** provides access to a powerful and up-to-date platform. With advanced data warehousing and AI-driven capabilities, this API is designed to empower your business to make informed, data-driven decisions and effectively assess potential risks. ### Base URL Use the following base URL for all API requests: ```plaintext https://api.opportify.ai/insights/v1/<service>/<endpoint> ``` ### Features - [**Email Insights:**](/docs/api-reference/email-insights) - Validate email syntax. - Identify email types (free, disposable, corporate or unknown). - Real time verifications: - Reachable: Confirms if the email domain has valid MX DNS records using DNS lookup. - Deliverable: Simulates an SMTP handshake to check if the email address exists and is deliverable. - Catch-All: Detects if the domain accepts all emails (catch-all configuration). - Intelligent Error Correction: Automatically corrects well-known misspelled email addresses. - Risk Report: Provides an AI-driven normalized score (200-1000) to evaluate email risk, using predefined thresholds. [Access Documentation >>](/docs/api-reference/email-insights) - [**IP Insights:**](/docs/api-reference/ip-insights) - Connection types: Detects connection types such as `wired`, `mobile`, `enterprise`, `satellite`, `VPN`, `cloud-provider`, `open-proxy`, or `Tor`. - Geo location: Delivers detailed insights such as country, city, timezone, language preferences, and additional location-based information to enhance regional understanding. - WHOIS: Provides main details including RIR, ASN, organization, and abuse/admin/technical contacts. - Trusted Provider Recognition: Identifies if the IP is part of a known trusted provider (e.g., ZTNA - Zero Trust Network Access). - Blocklist Reports: Retrieves up-to-date blocklist statuses, active reports, and the latest detections. - Risk Report: Delivers an AI-driven normalized score (200-1000) to evaluate IP risk, supported by predefined thresholds. [Access Documentation >>](/docs/api-reference/ip-insights) ### Authentication & Security - **API Key:** Access to the API requires an API key, which must be included in the request headers. Businesses can generate unlimited API keys directly from their account, offering flexibility and ease of use. - **ACL Rules:** Enhance security with Access Control Lists (ACL), allowing you to restrict API access from specific IP addresses or ranges. This feature provides an additional layer of protection by ensuring only authorized IPs can interact with the API. - **No Query Parameters:** As a precautionary measure, our API avoids the use of query parameters for all operations, including authentication and handling Personally Identifiable Information (PII). This approach minimizes security risks by preventing sensitive data from being exposed in access logs, browser history, cached URLs, debugging tools, or inadvertently shared URLs. All sensitive information is securely transmitted through headers or the request body.
9
-
10
- The version of the OpenAPI document: 1.0.0
11
- Generated by OpenAPI Generator (https://openapi-generator.tech)
12
-
13
- Do not edit the class manually.
14
- """ # noqa: E501
15
-
16
-
17
- __version__ = "1.0.0"
18
-
19
- # import apis into sdk package
20
- from openapi_client.api.email_insights_api import EmailInsightsApi
21
- from openapi_client.api.ip_insights_api import IPInsightsApi
22
-
23
- # import ApiClient
24
- from openapi_client.api_response import ApiResponse
25
- from openapi_client.api_client import ApiClient
26
- from openapi_client.configuration import Configuration
27
- from openapi_client.exceptions import OpenApiException
28
- from openapi_client.exceptions import ApiTypeError
29
- from openapi_client.exceptions import ApiValueError
30
- from openapi_client.exceptions import ApiKeyError
31
- from openapi_client.exceptions import ApiAttributeError
32
- from openapi_client.exceptions import ApiException
33
-
34
- # import models into sdk package
35
- from openapi_client.models.abuse_contact import AbuseContact
36
- from openapi_client.models.admin_contact import AdminContact
37
- from openapi_client.models.analyze_email200_response import AnalyzeEmail200Response
38
- from openapi_client.models.analyze_email400_response import AnalyzeEmail400Response
39
- from openapi_client.models.analyze_email400_response_error import AnalyzeEmail400ResponseError
40
- from openapi_client.models.analyze_email500_response import AnalyzeEmail500Response
41
- from openapi_client.models.analyze_email500_response_error import AnalyzeEmail500ResponseError
42
- from openapi_client.models.analyze_email_request import AnalyzeEmailRequest
43
- from openapi_client.models.analyze_ip200_response import AnalyzeIp200Response
44
- from openapi_client.models.analyze_ip400_response import AnalyzeIp400Response
45
- from openapi_client.models.analyze_ip400_response_error import AnalyzeIp400ResponseError
46
- from openapi_client.models.analyze_ip404_response import AnalyzeIp404Response
47
- from openapi_client.models.analyze_ip500_response import AnalyzeIp500Response
48
- from openapi_client.models.analyze_ip_request import AnalyzeIpRequest
49
- from openapi_client.models.asn import Asn
50
- from openapi_client.models.block_listed import BlockListed
51
- from openapi_client.models.email_dns import EmailDNS
52
- from openapi_client.models.geo import Geo
53
- from openapi_client.models.internalerror import INTERNALERROR
54
- from openapi_client.models.invalidemail import INVALIDEMAIL
55
- from openapi_client.models.ipvalidationfailed import IPVALIDATIONFAILED
56
- from openapi_client.models.malformedrequest import MALFORMEDREQUEST
57
- from openapi_client.models.malformedrequest1 import MALFORMEDREQUEST1
58
- from openapi_client.models.notfound import NOTFOUND
59
- from openapi_client.models.organization import Organization
60
- from openapi_client.models.risk_report import RiskReport
61
- from openapi_client.models.tech_contact import TechContact
62
- from openapi_client.models.trusted_provider import TrustedProvider
63
- from openapi_client.models.whois import Whois