{ "info": { "author": "Rafael Bicalho", "author_email": "rbmbika@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "==========================\npython-reCAPTCHA - 0.1.0\n==========================\n\nreCAPTCHA is a free CAPTCHA service that protects your site against spam,\nmalicious registrations and other forms of attacks where computers try to\ndisguise themselves as a human.\n\n**python-reCAPTCHA** is a Python **3.x** module, that provides an easy\nway to interact with the `reCAPTCHA API `_.\n\nInstallation\n============\n::\n\n $ pip install python-reCAPTCHA\n\n**or**\n\n::\n\n $ git clone https://github.com/rbika/python-reCAPTCHA.git\n $ cd python-reCAPTCHA\n $ python setup.py install\n $ cd .. && rm -rf python-reCAPTCHA\n\nUsage\n=====\nTo use reCAPTCHA, you need to `sign up for API keys\n`_ for your site.\n\nOnce you've signed up for API keys, adding reCAPTCHA to your site consists of\ntwo steps.\n\n1. Displaying the reCAPTCHA Widget\n----------------------------------\nGenerate the widget HTML by calling the ``generate_html`` function.\n\n::\n\n >>> from recaptcha.captcha import generate_html\n >>>\n >>> public_key = \"your_public_key\"\n >>> recaptcha_html = generate_html(public_key)\n >>>\n >>> print(recaptcha_html)\n \n\nPlace the generated HTML inside your form. If you are working with Django por\nexample, your form will looks like this:\n\n::\n\n
\n {% autoscape on %}recaptcha_html{% endautoescape %}\n \n
\n\n2. Verifying user's anwser\n--------------------------\nAfter the user submit the anwser, you should get the required paramenters and\ncall the ``verify`` function. Again, a Django's example.\n\n::\n\n >>> from recaptcha.captcha import verify\n >>>\n >>> private_key = \"your_private_key\"\n >>> remote_ip = request.META['REMOTE_ADDR']\n >>> challenge = request.POST.get('recaptcha_challenge_field', '')\n >>> response = request.POST.get('recaptcha_response_field', '')\n >>>\n >>> result = verify(private_key, remote_ip, challenge, response)\n >>>\n >>> print(result)\n {'success': False, 'error': 'incorrect-captcha-sol'}\n\nDocumentation\n=============\nDocumentation will be available soon.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/python-reCAPTCHA/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "python-reCAPTCHA", "package_url": "https://pypi.org/project/python-reCAPTCHA/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-reCAPTCHA/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/python-reCAPTCHA/" }, "release_url": "https://pypi.org/project/python-reCAPTCHA/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "Python module for reCAPTCHA service.", "version": "0.1.0" }, "last_serial": 1060618, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "82dc793aea376829fc5e3204ec9ddd99", "sha256": "4cf2d36413c26fcc611acca1e0b18daf6dc8f4ebfc8945ab5948cecbbe16aba7" }, "downloads": -1, "filename": "python-reCAPTCHA-0.1.0.tar.gz", "has_sig": false, "md5_digest": "82dc793aea376829fc5e3204ec9ddd99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3789, "upload_time": "2014-04-15T01:57:01", "url": "https://files.pythonhosted.org/packages/03/65/53de4b4e64da860b2856b9622e464620658fe950ef76aef9fd8b7f7007dd/python-reCAPTCHA-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "82dc793aea376829fc5e3204ec9ddd99", "sha256": "4cf2d36413c26fcc611acca1e0b18daf6dc8f4ebfc8945ab5948cecbbe16aba7" }, "downloads": -1, "filename": "python-reCAPTCHA-0.1.0.tar.gz", "has_sig": false, "md5_digest": "82dc793aea376829fc5e3204ec9ddd99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3789, "upload_time": "2014-04-15T01:57:01", "url": "https://files.pythonhosted.org/packages/03/65/53de4b4e64da860b2856b9622e464620658fe950ef76aef9fd8b7f7007dd/python-reCAPTCHA-0.1.0.tar.gz" } ] }