Skip to content

Commit 61c7a30

Browse files
committed
rm email, added async classify
1 parent d609b51 commit 61c7a30

File tree

2 files changed

+1
-44
lines changed

2 files changed

+1
-44
lines changed

jigsawstack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def __init__(
233233
api_key=api_key,
234234
api_url=api_url,
235235
disable_request_logging=disable_request_logging,
236-
)
236+
).classify
237237

238238

239239
# Create a global instance of the Web class

jigsawstack/validate.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,6 @@ class NSFWResponse(BaseResponse):
7373
gore_score: float
7474

7575

76-
class EmailValidationParams(TypedDict):
77-
email: str
78-
79-
80-
class EmailValidationResponse(TypedDict):
81-
success: bool
82-
email: str
83-
disposable: bool
84-
role_account: bool
85-
free: bool
86-
has_mx_records: bool
87-
username: bool
88-
domain: bool
89-
valid: bool
90-
91-
9276
class Validate(ClientConfig):
9377

9478
config: RequestConfig
@@ -106,20 +90,6 @@ def __init__(
10690
disable_request_logging=disable_request_logging,
10791
)
10892

109-
def email(self, params: EmailValidationParams) -> EmailValidationResponse:
110-
path = build_path(
111-
base_path="/validate/email",
112-
params=params,
113-
)
114-
115-
resp = Request(
116-
config=self.config,
117-
path=path,
118-
params=cast(Dict[Any, Any], params),
119-
verb="get",
120-
).perform_with_content()
121-
return resp
122-
12393
@overload
12494
def nsfw(self, params: NSFWParams) -> NSFWResponse: ...
12595
@overload
@@ -210,19 +180,6 @@ def __init__(
210180
disable_request_logging=disable_request_logging,
211181
)
212182

213-
async def email(self, params: EmailValidationParams) -> EmailValidationResponse:
214-
path = build_path(
215-
base_path="/validate/email",
216-
params=params,
217-
)
218-
resp = await AsyncRequest(
219-
config=self.config,
220-
path=path,
221-
params=cast(Dict[Any, Any], params),
222-
verb="get",
223-
).perform_with_content()
224-
return resp
225-
226183
@overload
227184
async def nsfw(self, params: NSFWParams) -> NSFWResponse: ...
228185
@overload

0 commit comments

Comments
 (0)