Official Python client for Private Captcha API
Please check the official documentation for the in-depth and up-to-date information.
- Install
private-captchapackagepip install private-captcha
- Instantiate the
Clientclass and callverify()method to verify the solutionfrom private_captcha import Client # Initialize the client with your API key client = Client(api_key="your-api-key-here") # Verify a captcha solution try: result = client.verify(solution="user-solution-from-frontend") if result.ok(): print("Captcha verified successfully!") else: print(f"Verification failed: {result}") except Exception as e: print(f"Error: {e}")
- Integrate with Flask or Django using
client.verify_request()helper
- Python 3.9+
- No external dependencies (uses only standard library)
This project is licensed under the MIT License - see the LICENSE file for details.
For issues with this Python client, please open an issue on GitHub. For Private Captcha service questions, visit privatecaptcha.com.