Are You A Human (AYAH) - Python Integration Library
SUMMARY
Documentation and latest version: http://portal.areyouahuman.com/help
Get an AYAH publisher key: https://portal.areyouahuman.com/
Discussion group: http://support.areyouahuman.com/
Copyright (c) 2011 AYAH LLC http://www.areyouahuman.com
BY USING THIS SOFTWARE YOU AGREE TO THE TERMS AND CONDITIONS FOUND AT: http://portal.areyouahuman.com/termsAndConditions
INSTALLATION
The AYAH Python Integration Library is compatible with Python 2.x and 3.x. (It was built and tested on versions 2.7.x and 3.2.x.) Python 3.x requires an extra installation step as described below.
Python 2.x Installation:
Download and extract the appropriate source distribution for your OS.
Install the package:
python setup.py install
Python 3.x Installation:
Download and extract the appropriate source distribution for your OS.
Convert the package to Python 3.x:
2to3 -wn ./ayah
Install the package:
python3 setup.py install
INTEGRATION
The AYAH Python Integration Library is compatible with all web application frameworks.
Get your publisher key and scoring key from https://portal.areyouahuman.com/.
Import the ayah module:
import ayah
Configure the ayah module when your application initializes:
ayah.configure(<your-publisher-key>, <your-scoring-key>)
Display the AYAH HTML on any page that requires a human:
html = ayah.get_publisher_html()
Django: you can pass this HTML to the view through the context or simply call get_publisher_html() in the template.
Allow the alleged human to complete the PlayThru challenge. When they’re finished, your web page will have a hidden field on it with id=”session_secret”.
Use the value of the hidden session secret field to determine if the alleged human passed the challenge:
passed = ayah.score_result(<session-secret>)
Django: the hidden field will be available in your form object:
if request.method == 'POST': form = LoginForm(request.POST) if form.is_valid(): secret = form.cleaned_data['session_secret'] passed = ayah.score_result(secret) # Redirect...If you’d like to record a conversion with our system, a special bit of HTML will need to be embedded in your ‘conversion’ page. To get that HTML, call the following method:
html = ayah.record_conversion(<session-secret>)
Congratulations, your application detects humans without requiring CAPTCHA!
Metadata
Release files for are-you-a-human 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| are-you-a-human-1.0.5.zip | 7.8 kB | Without provenance | Details for are-you-a-human-1.0.5.zip | |
| are-you-a-human-1.0.5.tar.gz | 5.9 kB | Without provenance | Details for are-you-a-human-1.0.5.tar.gz |
Release files / are-you-a-human-1.0.5.zip
| Download URL | are-you-a-human-1.0.5.zip |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f22e8e8ef70b671fed119f1808a0a97c4acc0657f06786a30dd5006a0bc367c3
|
|
BLAKE2b-256 checksum How to use checksums |
a1a1eafa651a4a0209c1662752a23312309212fbdf35bfd4d7761491c608043c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / are-you-a-human-1.0.5.tar.gz
| Download URL | are-you-a-human-1.0.5.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26f66b511269460446216fd594dd433f3cd2a1cfcf36b97c5ff1c94b460c46ee
|
|
BLAKE2b-256 checksum How to use checksums |
ece14db1e39cbb50b6e5f6ef888d0c69416b6a75747f012a4cfafa06d6c7bc3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for are-you-a-human 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.