opportify-sdk 0.1.0__py3-none-any.whl → 0.1.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.
- opportify_sdk-0.1.1.dist-info/METADATA +108 -0
- {opportify_sdk-0.1.0.dist-info → opportify_sdk-0.1.1.dist-info}/RECORD +4 -4
- opportify_sdk-0.1.0.dist-info/METADATA +0 -16
- {opportify_sdk-0.1.0.dist-info → opportify_sdk-0.1.1.dist-info}/WHEEL +0 -0
- {opportify_sdk-0.1.0.dist-info → opportify_sdk-0.1.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: opportify_sdk
|
|
3
|
+
Version: 0.1.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
|
+
|
|
15
|
+
# Opportify-SDK-Python
|
|
16
|
+
|
|
17
|
+
## Overview
|
|
18
|
+
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
[Sign Up Free](https://www.opportify.ai)
|
|
22
|
+
|
|
23
|
+
### Base URL
|
|
24
|
+
Use the following base URL for all API requests:
|
|
25
|
+
|
|
26
|
+
```plaintext
|
|
27
|
+
https://api.opportify.ai/insights/v1/<service>/<endpoint>
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Requirements
|
|
31
|
+
|
|
32
|
+
Requires Python v3.8 or later
|
|
33
|
+
|
|
34
|
+
## Getting Started
|
|
35
|
+
|
|
36
|
+
First, install Opportify SDK via PyPI manager:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
pip install opportify-sdk
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Calling Email Insights
|
|
43
|
+
|
|
44
|
+
```python
|
|
45
|
+
from opportify_sdk import EmailInsights
|
|
46
|
+
|
|
47
|
+
# Initialize the wrapper with your API key
|
|
48
|
+
api_key = "<YOUR-API-KEY-HERE>"
|
|
49
|
+
email_insights = EmailInsights(api_key)
|
|
50
|
+
|
|
51
|
+
# Optional: Configure host, version, and debug mode
|
|
52
|
+
email_insights.set_version("v1")
|
|
53
|
+
|
|
54
|
+
# Define request parameters
|
|
55
|
+
params = {
|
|
56
|
+
"email": "<SOME-EMAIL-HERE>",
|
|
57
|
+
"enableAutoCorrection": True,
|
|
58
|
+
"enableAi": True
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
# Call the API
|
|
62
|
+
try:
|
|
63
|
+
result = email_insights.analyze(params)
|
|
64
|
+
print("Response:", result)
|
|
65
|
+
except Exception as e:
|
|
66
|
+
print(f"Error: {e}")
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Calling IP Insights
|
|
70
|
+
|
|
71
|
+
```python
|
|
72
|
+
|
|
73
|
+
from opportify_sdk import IpInsights
|
|
74
|
+
|
|
75
|
+
# Initialize the wrapper with your API key
|
|
76
|
+
api_key = "<YOUR-API-KEY-HERE>"
|
|
77
|
+
ip_insights = IpInsights(api_key)
|
|
78
|
+
|
|
79
|
+
# Optional: Configure host, version, and debug mode
|
|
80
|
+
ip_insights.set_version("v1")
|
|
81
|
+
|
|
82
|
+
# Define request parameters
|
|
83
|
+
params = {
|
|
84
|
+
"ip": "<SOME-IP-HERE>",
|
|
85
|
+
"enableAi": True
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
# Call the API
|
|
89
|
+
try:
|
|
90
|
+
result = ip_insights.analyze(params)
|
|
91
|
+
print("Response:", result)
|
|
92
|
+
except Exception as e:
|
|
93
|
+
print(f"Error: {e}")
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Enable Debug Mode
|
|
97
|
+
|
|
98
|
+
```python
|
|
99
|
+
ip_insights.set_version("v1").set_debug_mode(True)
|
|
100
|
+
email_insights.set_version("v1").set_debug_mode(False)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
## About this package
|
|
104
|
+
|
|
105
|
+
This Python package is a customization of the base generated by:
|
|
106
|
+
|
|
107
|
+
- [OpenAPI Generator](https://openapi-generator.tech) project.
|
|
108
|
+
|
|
@@ -43,7 +43,7 @@ lib/v1/openapi_client/models/whois.py,sha256=Yoo9QsUHPMjo9nwSR_H8ZHMhP2fYNRug3jB
|
|
|
43
43
|
src/__init__.py,sha256=b5dO5TZ0ac8L7meGstmpAzIWXS9jwPqV1EruY32dffk,139
|
|
44
44
|
src/email_insights.py,sha256=i4NaYLZiJfXeHaNRZz3V15q8nsgGMcC37iBG5AaDj-Q,3283
|
|
45
45
|
src/ip_insights.py,sha256=yaydXslmi5e_cSFCniJTFCWazE1Zw4K-ZlXiLxGbfkU,3008
|
|
46
|
-
opportify_sdk-0.1.
|
|
47
|
-
opportify_sdk-0.1.
|
|
48
|
-
opportify_sdk-0.1.
|
|
49
|
-
opportify_sdk-0.1.
|
|
46
|
+
opportify_sdk-0.1.1.dist-info/METADATA,sha256=6bRgIBmdzuGi30ooeYSN51obEPgcVW-etXYZI7SwV8o,2459
|
|
47
|
+
opportify_sdk-0.1.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
48
|
+
opportify_sdk-0.1.1.dist-info/top_level.txt,sha256=4zVviOxxwoucHwO4Z7OzyNBMPn7vZjaTdyfvDO-OZfg,8
|
|
49
|
+
opportify_sdk-0.1.1.dist-info/RECORD,,
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: opportify_sdk
|
|
3
|
-
Version: 0.1.0
|
|
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
|
-
|
|
15
|
-
## 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.
|
|
16
|
-
|
|
File without changes
|
|
File without changes
|