Recaptcha v2 and v3
Project description
Async Recaptcha V2 & V3
Setup ⚙️
$ pip install aio-recaptcha
Usage
import aiorecaptcha
@app.route('/')
def render_recaptcha():
render(aiorecaptcha.html(site_key='your_site_key') + aiorecaptcha.js())
@app.route('/verify', methods=['POST'])
async def verify_recaptcha(response_received_from_form):
try:
await aiorecaptcha.verify(secret=client_secret, response=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
Contact 📧
I currently work as a freelance software devloper. Like my work and got a gig for me?
Want to hire me fulltime? Send me an email @ omarryhan@gmail.com
Buy me a coffee ☕
Bitcoin: 3NmywNKr1Lzo8gyNXFUnzvboziACpEa31z
Ethereum: 0x1E1400C31Cd813685FE0f6D29E0F91c1Da4675aE
Bitcoin Cash: qqzn7rsav6hr3zqcp4829s48hvsvjat4zq7j42wkxd
Litecoin: MB5M3cE3jE4E8NwGCWoFjLvGqjDqPyyEJp
Paypal: https://paypal.me/omarryhan
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.9.tar.gz
(4.7 kB
view hashes)