nlxcaptcha
Advanced tools
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.6 | ||
| Version: 1.7 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha |
@@ -13,2 +13,3 @@ import tkinter as tk | ||
| self.device = self.detect_device() | ||
| self.result = None | ||
@@ -78,8 +79,10 @@ def detect_device(self): | ||
| self.result = content # Set the result here | ||
| self.loading.stop() | ||
| self.loading.pack_forget() | ||
| tk.messagebox.showinfo("Verification", "Verification Successful") | ||
| self.window.destroy() | ||
| self.result = content | ||
| def verify(difficulty, openaiapikey): | ||
@@ -89,5 +92,6 @@ captcha = NLXCaptcha(api_key=openaiapikey, difficulty=difficulty) | ||
| # Wait for the result to be set before returning it | ||
| captcha.window.mainloop() | ||
| return captcha.result # Return only the result | ||
| # Ensure that the result is set before returning it | ||
| if captcha.result is None: | ||
| captcha.result = "0" # Default to "0" if no result was set | ||
| return captcha.result |
+1
-1
| Metadata-Version: 2.1 | ||
| Name: nlxcaptcha | ||
| Version: 1.6 | ||
| Version: 1.7 | ||
| Summary: Tell "iPad Kids" and "Non-iPad Kids" apart using OpenAI API in this easy-to-integrate captcha. | ||
@@ -5,0 +5,0 @@ Home-page: https://github.com/nlckysolutions/NLX-Captcha |
+1
-1
@@ -5,3 +5,3 @@ from setuptools import setup, find_packages | ||
| name='nlxcaptcha', | ||
| version='1.6', | ||
| version='1.7', | ||
| packages=find_packages(), | ||
@@ -8,0 +8,0 @@ install_requires=[ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
7146
2.44%93
4.49%