Skip to main content

Recaptcha v2 and v3

Project description

Recaptcha V2 & V3

Install

$ pip install --user aio-recaptcha

Usage

def render_captcha():
    render(recaptcha.html(site_key='your_site_key') + recaptcha.js())

def verify_captcha(response_received_from_form):
    try:
        await recaptcha.verify(client_secret, response_recieved_from_form)

    except recaptcha.RecaptchaError:
        return 'No! Only hoomans!'

    else:
        return 'Hello hooman!'

API:

js()
html()
coro verify()
exc RecaptchaError

Test

Run:

$ /aio-recaptcha/test.sh

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

aio-recaptcha-0.0.2.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file aio-recaptcha-0.0.2.tar.gz.

File metadata

  • Download URL: aio-recaptcha-0.0.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for aio-recaptcha-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c84fc7c3fb278b12bcbcc362aaf97dcddae60d1297759d35d5daf0dea46a99b1
MD5 f32804b2030526586be7d1d3b2c4e9e9
BLAKE2b-256 6b2e5c98cc1eb44af23d04e56eea72797afb494a612ed72f62a7e6fa50f9f496

See more details on using hashes here.

Supported by

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