Skip to main content

TrustCaptcha – Privacy-first CAPTCHA solution for Python. GDPR-compliant, bot protection made in Europe.

Project description

PyPI

TrustCaptcha for Python — GDPR-compliant, privacy-first CAPTCHA

Protect websites and apps against bots and spam with a privacy-first, EU-hosted CAPTCHA solution.

What is TrustCaptcha?

TrustCaptcha combines proof-of-work, an AI bot-score and custom security rules to stop automated bot abuse — without image marking or puzzles

Key perks:

  • Privacy-friendly & GDPR-compliant – data processed exclusively in Europe
  • No visual challenges – users never label images or solve quizzes
  • Fully themable widget – matches any brand and design and improves your user flow
  • Conversion-safe – near-zero user drop-off compared to legacy CAPTCHAs

Read the full TrustCaptcha product overview for technical details and the security concept.

Get started

  1. Create an account: sign up / sign in.
  2. Choose a CAPTCHA: pick an existing one or create a new one.
  3. Embed the widget: implement the TrustCaptcha widget into your website or app.
  4. Validate result: validate the CAPTCHA verification result in your backend.

Need a walkthrough? See the Python integration guide.

Basic Python integration

  1. Install the dependency
pip install trustcaptcha
  1. Retrieve the verification result
from trustcaptcha.trust_captcha import TrustCaptcha

# Retrieving the verification result
try:
    trust_captcha = TrustCaptcha("<your_api_key>")
    verification_result = trust_captcha.get_verification_result("<verification_token_from_your_client>")
except Exception as e:
    # Fetch verification result failed - handle error
    print(f"Failed to fetch verification result: {e}")
    return jsonify({'error': 'Captcha verification failed'}), 500
  1. Act on the result
# Act on the verification result
if verification_result.verification_passed is not True or verification_result.score > 0.5:
    print("Verification failed or bot score > 0.5 – possible automated request.")

Congratulations — you have successfully validated the result of the CAPTCHA!

For detailed implementation instructions, read the Python integration guide.

Other pre-built integrations

TrustCaptcha ships ready-made integrations for popular stacks:

  • Platforms like WordPress, Joomla, CraftCMS or Keycloak
  • Frontends like JavaScript, Angular, React or Vue.js
  • Backends like Node.js, PHP, Python, Java, Ruby, Rust, Go or DotNet
  • Mobile Applications like iOS, Android, React Native or Flutter

Discover all our pre-built Integrations on our website.

Get support

Questions? We will be happy to help!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trustcaptcha-3.0.0b0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trustcaptcha-3.0.0b0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file trustcaptcha-3.0.0b0.tar.gz.

File metadata

  • Download URL: trustcaptcha-3.0.0b0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for trustcaptcha-3.0.0b0.tar.gz
Algorithm Hash digest
SHA256 aeb0e52696ed36789991d9a2e306aa344d48b14482d1ebd9d965090f9a6d0321
MD5 116c48058dc8596d099d2008cafdf61d
BLAKE2b-256 6d8c6185edafd0620758102c0c0ca7fb685dda2ab0a8aa2ef20b3157eb382993

See more details on using hashes here.

File details

Details for the file trustcaptcha-3.0.0b0-py3-none-any.whl.

File metadata

  • Download URL: trustcaptcha-3.0.0b0-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for trustcaptcha-3.0.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 f31e9a2a1e3e0b9007c39e049749fd6f3bd1c1e7b469817df1db2506667f630c
MD5 ea4718b082beefc6632f8aa7ad241b8f
BLAKE2b-256 25da2a8919f6e2c0afc0c5597f2a2d5fa7658b71e4a437b36b7ac5b37b95adee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page