{ "info": { "author": "Anderson Araujo (coderpy)", "author_email": "anderson.araujoprog@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# Flask Google ReCaptcha\n\n[](https://pypi.python.org/pypi/ansicolortags/)\n\nThe Working Google ReCaptcha implementation for Flask without Flask-WTF.\n\nCan also be used as standalone\n\n---\n\n## Install\n pip install Flask-GoogleReCaptcha\n\n # or\n\n pip install git+https://github.com/AndersonFirmino/flask-google-recaptcha.git\n\n If you are using pipenv\n pipenv install Flask-GoogleReCaptcha\n\n\nThis implementation is pure and has no dependencies from third parties. Works in both Python2 and Python3.\nYou can use it in any flask project.\n\nHas Google App Engine (GAE) support!\n\n\n# Usage\n\n### Implementation view.py\n\n from flask import Flask\n from flask_google_recaptcha import GoogleReCaptcha\n\n app = Flask(__name__)\n recaptcha = GoogleReCaptcha(app=app)\n\n # or\n\n recaptcha = GoogleReCaptcha()\n recaptcha.init_app(app)\n\n\n### In your template: **{{ recaptcha }}**\n\nInside of the form you want to protect, include the tag: **{{ recaptcha }}**\n\nIt will insert the code automatically\n\n\n
\n\n\n\n\n### Verify the captcha\n\nIn the view that's going to validate the captcha\n\n from flask import Flask\n from flask_google_recaptcha import GoogleReCaptcha\n\n app = Flask(__name__)\n recaptcha = GoogleReCaptcha(app=app)\n\n @route(\"/submit\", methods=[\"POST\"])\n def submit():\n\n if recaptcha.verify():\n # SUCCESS\n pass\n else:\n # FAILED\n pass\n\n\nRemember to set SITE_KEY and SECRET_KEY if not it does not appear!\n\n## Api\n\n**reCaptcha.__init__(app, site_key, secret_key, is_enabled=True)**\n\n**reCaptcha.get_code()**\n\nReturns the HTML code to implement. But you can use\n**{{ recaptcha }}** directly in your template\n\n**reCaptcha.verfiy()**\n\nReturns bool\n\n## In Template\n\nJust include **{{ recaptcha }}** wherever you want to show the recaptcha\n\n\n## Config\n\nFlask-ReCaptcha is configured through the standard Flask config API.\nThese are the available options:\n\n**RECAPTCHA_ENABLED**: Bool - True by default, when False it will bypass validation\n\n**RECAPTCHA_SITE_KEY** : Public key\n\n**RECAPTCHA_SECRET_KEY**: Private key\n\nThe following are **Optional** arguments.\n\n**RECAPTCHA_THEME**: String - Theme can be 'light'(default) or 'dark'\n\n**RECAPTCHA_TYPE**: String - Type of recaptcha can be 'image'(default) or 'audio'\n\n**RECAPTCHA_SIZE**: String - Size of the image can be 'normal'(default) or 'compact'\n\n**RECAPTCHA_TABINDEX**: Int - Tabindex of the widget can be used, if the page uses tabidex, to make navigation easier. Defaults to 0\n\n RECAPTCHA_ENABLED = True\n RECAPTCHA_SITE_KEY = \"\"\n RECAPTCHA_SECRET_KEY = \"\"\n RECAPTCHA_THEME = \"dark\"\n RECAPTCHA_TYPE = \"image\"\n RECAPTCHA_SIZE = \"compact\"\n RECAPTCHA_RTABINDEX = 10\n\n---\n\nAnderson Araujo (coderpy) :snake:\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "http://github.com/AndersonFirmino/flask-google-recaptcha/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AndersonFirmino/flask-google-recaptcha", "keywords": "flask,recaptcha,validate,google,google app engine,not a robot", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Flask-GoogleReCaptcha", "package_url": "https://pypi.org/project/Flask-GoogleReCaptcha/", "platform": "any", "project_url": "https://pypi.org/project/Flask-GoogleReCaptcha/", "project_urls": { "Download": "http://github.com/AndersonFirmino/flask-google-recaptcha/tarball/master", "Homepage": "https://github.com/AndersonFirmino/flask-google-recaptcha" }, "release_url": "https://pypi.org/project/Flask-GoogleReCaptcha/0.5.8/", "requires_dist": [ "flask", "jinja2" ], "requires_python": "", "summary": "The working Google ReCaptcha implementation for Flask without Flask-WTF", "version": "0.5.8" }, "last_serial": 3806643, "releases": { "0.5.4": [ { "comment_text": "", "digests": { "md5": "ce5259939c10107b7c49852aee1097cc", "sha256": "e09f6c122b2d7b1365cc30c8438cba5313c0419fb5a0620be4b3d08e03b45e13" }, "downloads": -1, "filename": "Flask_GoogleRecaptcha-0.5.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ce5259939c10107b7c49852aee1097cc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4451, "upload_time": "2018-04-22T03:21:55", "url": "https://files.pythonhosted.org/packages/83/4d/d35203057ec05eed59b7f7624a750bb4f06d753b335f348950451db461c0/Flask_GoogleRecaptcha-0.5.4-py2.py3-none-any.whl" } ], "0.5.5": [ { "comment_text": "", "digests": { "md5": "a29deb454f0317b7ef6196b26560ce07", "sha256": "7635bc8df232b3e07a7365bcdd7abbb4c4a0905ab0b1febb025e134d1e64234d" }, "downloads": -1, "filename": "Flask_GoogleRecaptcha-0.5.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "a29deb454f0317b7ef6196b26560ce07", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4167, "upload_time": "2018-04-22T04:09:28", "url": "https://files.pythonhosted.org/packages/70/26/0037f101bca064ce7beec4d0f9099baf5f8fe2e899aa3823dc35b7eaaae7/Flask_GoogleRecaptcha-0.5.5-py2.py3-none-any.whl" } ], "0.5.7": [ { "comment_text": "", "digests": { "md5": "1d528242d73c99b3eafd978c30958c58", "sha256": "2b9c4335d49bfd3c17df2b924278a6afdfd77846f707fcb4a9c455b3802d7ded" }, "downloads": -1, "filename": "Flask_GoogleRecaptcha-0.5.7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1d528242d73c99b3eafd978c30958c58", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4510, "upload_time": "2018-04-24T02:01:50", "url": "https://files.pythonhosted.org/packages/16/d3/478f79179fa86757e59fa09ff644784e0504bdd8af57572791ecb56bff6c/Flask_GoogleRecaptcha-0.5.7-py2.py3-none-any.whl" } ], "0.5.8": [ { "comment_text": "", "digests": { "md5": "564197a6d74e6aa44fbac7a04f804679", "sha256": "7a07badbf4b8a398152a91eec44f8fc6d8c1e02ea0b60cd03568da1d5948fc7f" }, "downloads": -1, "filename": "Flask_GoogleRecaptcha-0.5.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "564197a6d74e6aa44fbac7a04f804679", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4333, "upload_time": "2018-04-25T12:28:11", "url": "https://files.pythonhosted.org/packages/16/f4/d3cbea930a1625fa7c79a11a4a14b53066377eb6c16120a3fc84c93ea975/Flask_GoogleRecaptcha-0.5.8-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "564197a6d74e6aa44fbac7a04f804679", "sha256": "7a07badbf4b8a398152a91eec44f8fc6d8c1e02ea0b60cd03568da1d5948fc7f" }, "downloads": -1, "filename": "Flask_GoogleRecaptcha-0.5.8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "564197a6d74e6aa44fbac7a04f804679", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4333, "upload_time": "2018-04-25T12:28:11", "url": "https://files.pythonhosted.org/packages/16/f4/d3cbea930a1625fa7c79a11a4a14b53066377eb6c16120a3fc84c93ea975/Flask_GoogleRecaptcha-0.5.8-py2.py3-none-any.whl" } ] }