Metadata-Version: 2.1
Name: trustcaptcha-python
Version: 1.1.0
Summary: Trustcaptcha library for python
Author-email: Trustcaptcha GmbH <mail@trustcaptcha.com>
License: Apache-2.0
Keywords: captcha,gdpr,privacy,security,made-in-germany,eu,european-union
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: numpy
Requires-Dist: pycryptodome ==3.19.0
Requires-Dist: pycryptodomex ==3.19.0
Provides-Extra: dev
Requires-Dist: pytest ; extra == 'dev'
Requires-Dist: flake8 ; extra == 'dev'

# Trustcaptcha Python-Library

The Python library helps you to integrate Trustcaptcha into your Python backend applications.


## What is Trustcaptcha?

A captcha solution that protects you from bot attacks and puts a special focus on user experience and data protection.

You can find more information on your website: [www.trustcaptcha.com](https://www.trustcaptcha.com).


## How does the library work?

Detailed instructions and examples for using the library can be found in our [documentation](https://trustcaptcha.com/en/documentation/backend/python).


## Short example

Here you can see a short code example of a possible integration. Please refer to our provided [documentation](https://trustcaptcha.com/en/documentation/backend/python) for complete and up-to-date integration instructions.

Installing the library

``pip install trustcaptcha-python``

Fetching and handling the result

```
# Retrieving the verification result
verification_result = CaptchaManager.get_verification_result("<your_secret_key>", <verification_token>)

# Do something with the verification result
if verification_result.verificationPassed is not True or verification_result.score > 0.5:
    print("Verification failed, or bot score is higher than 0.5 – this could indicate a bot.")
```

## Ideas and support

If you have any ideas, suggestions, or need support, please [contact us](https://about.trustcaptcha.com/en#contact-us).
