{ "info": { "author": "Brandon Taylor", "author_email": "alsoicode@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Utilities" ], "description": "==========================\ndjango-simple-math-captcha\n==========================\n\n.. image:: https://travis-ci.org/alsoicode/django-simple-math-captcha.svg\n :target: https://travis-ci.org/alsoicode/django-simple-math-captcha\n\nCurrent Version: 1.0.8\n\nWhat is it?\n===========\nA multi-value-field that presents a human answerable question,\nwith no settings.py configuration necessary, but instead can be\nconfigured with arguments to the field constructor.\n\nInstallation\n============\nYou can do any of the following to install ``django-simple-math-captcha``\n\n- Run ``pip install django-simple-math-captcha``.\n- Download or \"git clone\" the package and run ``setup.py``.\n- Download or \"git clone\" the package and put the ``simplemathcaptcha``\n directory on your ``PYTHONPATH``.\n\nUsage\n=====\n\nForms\n-----\nTo add the captcha field to your form::\n\n from django import forms\n from simplemathcaptcha.fields import MathCaptchaField\n\n class MyForm(forms.Form):\n some_text_field = models.CharField(max_length=50)\n captcha = MathCaptchaField()\n\nOptionally, you can pass in the following arguments to the field to configure it.\n\nstart_int\n The number at which the field should begin its range of random numbers.\n This value will be used passed into the creation of a\n ``simplemathcaptcha.widgets.MathCaptchaWidget`` for this field.\n\n Default value: ``1``\n\nend_int\n The number at which the field should end its range of random numbers.\n This value will be used passed into the creation of an\n ``simplemathcaptcha.widgets.MathCaptchaWidget`` for this field.\n\n Default value: ``10``\n\nerror_messages\n A dictionary of error messages. The keys you can use are ``invalid``\n and ``invalid_number``.\n\n invalid\n is the message to display when the provided answer is incorrect\n\n Default value: ``\"Check your math and try again.\"``\n\n invalid_number\n is the message to display when the entry is not a whole\n number\n\n Default value: ``\"Enter a whole number.\"``\n\nquestion_tmpl\n A string with format placeholders to use for the displayed question.\n\n Default value: ``\"What is %(num1)i %(operator)s %(num2)i?\"``\n\nquestion_class\n A css class to use for the span containing the displayed question.\n\n Default value: ``\"captcha-question\"``\n\nwidget\n The widget instance to use, instead of the field creating an instance\n of ``simplemathcaptcha.widgets.MathCaptchaWidget``. When provided,\n it must be an instatiated widget, not a widget class.\n\n Additionally, when specifying ``widget``, you must not specify\n ``start_int`` or ``end_int``.\n\n Default value: ``None``\n\n\nRationale\n=========\nOther math captcha fields can present questions that require decimal answers,\nanswers that could be negative values and that require settings.py configuration.\nThis project aims to provide a single field with minimal or no configuration\nnecessary and reduce or prevent spam form submissions.\n\nStatus\n======\ndjango-simple-math-captcha is currently used in production.\n\nFeatures\n=========\n- Simple addition, subtraction or multiplication question for captcha\n- No configuration necessary\n- Question asked changes with every render\n- Uses SHA1 hashing of answer with your SECRET_KEY\n- Unit tests are provided in the source\n\nRequirements\n============\n- Python 2.6+\n- Django 1.4+\n\nLicense\n=======\nThe django-simple-math-captcha app is released under the Apache Public License v2.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://alsoicode.github.io/", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "django-simple-math-captcha", "package_url": "https://pypi.org/project/django-simple-math-captcha/", "platform": "", "project_url": "https://pypi.org/project/django-simple-math-captcha/", "project_urls": { "Homepage": "https://alsoicode.github.io/" }, "release_url": "https://pypi.org/project/django-simple-math-captcha/1.0.8/", "requires_dist": null, "requires_python": "", "summary": "An easy-to-use math field/widget captcha for Django forms.", "version": "1.0.8" }, "last_serial": 4820856, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4ac2e370e02864e746fc77ce1f5d0a21", "sha256": "8173f1d689fdd3f82e562844a3c842a8988a01a28bc344a07ccd5e8da87b7173" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.tar.gz", "has_sig": false, "md5_digest": "4ac2e370e02864e746fc77ce1f5d0a21", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4476, "upload_time": "2011-09-09T03:51:17", "url": "https://files.pythonhosted.org/packages/94/9e/ab4033517ee2ef337608fbffd6e6ed4007d75e7f77b69b0fe2fae66de22a/django-simple-math-captcha-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "bbcdf7014306d66a668dda04b88665fe", "sha256": "f789bf1079b712d6bd2e98bbcdf61b92b820a4f7fe1f0eeda51151762573f6b9" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.1.tar.gz", "has_sig": false, "md5_digest": "bbcdf7014306d66a668dda04b88665fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4498, "upload_time": "2011-09-09T04:13:32", "url": "https://files.pythonhosted.org/packages/86/9f/12b7c9337c7306cb4e5e494b886d081191d8bb243c341a8d880709f0bc8f/django-simple-math-captcha-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "5e41035583b8851ab983e5d71c9ecb05", "sha256": "d59fdaca81d6318291f32b3a4c06af2f9cebc45298f67e685985628c6e5fce48" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.2.zip", "has_sig": false, "md5_digest": "5e41035583b8851ab983e5d71c9ecb05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7034, "upload_time": "2011-09-14T17:51:21", "url": "https://files.pythonhosted.org/packages/3f/8c/d042c2ac158936bb617c727c2f17ff91125edd19ddc98ee208f26c3c4a8e/django-simple-math-captcha-1.0.2.zip" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "0cb10e118634782eb93dc9214721e1a0", "sha256": "2c13a3b040b055cb58f90af470d6679ed1def5c8a52393a364352bee09dc5487" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.3.tar.gz", "has_sig": false, "md5_digest": "0cb10e118634782eb93dc9214721e1a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6893, "upload_time": "2014-03-19T02:12:32", "url": "https://files.pythonhosted.org/packages/70/c2/f672315bfd2a7a36af8e01a07809ed49e33d43597811ed637869a7bc87be/django-simple-math-captcha-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "0c99821be009f7639032b132f0455cb6", "sha256": "6b0b9110c3f5905846be8f957bef3a1de8a2ed0d746cc06a2b92902bb0f996f4" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.4.zip", "has_sig": false, "md5_digest": "0c99821be009f7639032b132f0455cb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15342, "upload_time": "2014-10-17T01:48:49", "url": "https://files.pythonhosted.org/packages/6f/ef/36fb1a2c2bf27f08935ab6547d0d558cace505f76480012d9240ae22d656/django-simple-math-captcha-1.0.4.zip" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "503bdc3f4441f619bfc4b38bcf301b83", "sha256": "e3364df923b7c0b8063aafb39bf60996e51f273b020359ab85dbbb254a1aa233" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.5.zip", "has_sig": false, "md5_digest": "503bdc3f4441f619bfc4b38bcf301b83", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15346, "upload_time": "2014-10-17T02:03:26", "url": "https://files.pythonhosted.org/packages/e6/43/67670f6e943941d6bb01c39b2df7d2dfe23c3b4cab7edd2e7fee430bd7dd/django-simple-math-captcha-1.0.5.zip" } ], "1.0.7": [ { "comment_text": "", "digests": { "md5": "d0b7a01c8670b66389d7c5c6b01a1878", "sha256": "0d0abccb43b2fda4e02755df36f3228ab29df6af9c3cd02e94f61b6f74850624" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.7.tar.gz", "has_sig": false, "md5_digest": "d0b7a01c8670b66389d7c5c6b01a1878", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8260, "upload_time": "2015-08-31T01:44:37", "url": "https://files.pythonhosted.org/packages/67/c0/dec4df8d77d67d64626f9de2787e485b7886cad186c5aad43fdb982c292d/django-simple-math-captcha-1.0.7.tar.gz" } ], "1.0.8": [ { "comment_text": "", "digests": { "md5": "420a6241623888bbc52f60fc0388842b", "sha256": "9cf7d882c5ad84e5be7dc8c463ddcb3f1606c46f23578bd522019b6f3dd67780" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.8.tar.gz", "has_sig": false, "md5_digest": "420a6241623888bbc52f60fc0388842b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8102, "upload_time": "2019-02-14T15:31:58", "url": "https://files.pythonhosted.org/packages/5b/85/18515ab032cf748a4d87efda4de2b6e02e2af28512419f972618ec339af8/django-simple-math-captcha-1.0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "420a6241623888bbc52f60fc0388842b", "sha256": "9cf7d882c5ad84e5be7dc8c463ddcb3f1606c46f23578bd522019b6f3dd67780" }, "downloads": -1, "filename": "django-simple-math-captcha-1.0.8.tar.gz", "has_sig": false, "md5_digest": "420a6241623888bbc52f60fc0388842b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8102, "upload_time": "2019-02-14T15:31:58", "url": "https://files.pythonhosted.org/packages/5b/85/18515ab032cf748a4d87efda4de2b6e02e2af28512419f972618ec339af8/django-simple-math-captcha-1.0.8.tar.gz" } ] }