{ "info": { "author": "Piotr Kuszaj", "author_email": "peterkuszaj@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "A simple CAPTCHA image generator.\n\nThis module provides a single class (Claptcha) that can create on the fly\nPIL Image instances, BytesIO objects or save image files containing a simple\nCAPTCHA strings. Its build on top of Pillow package.\n\nIt is required that user provides a TTF file with font to be used in images\nand either a string with CAPTCHA text or a callable object returning strings\nto be used in images.\n\nExamples:\n\n>>> from claptcha import Claptcha\n>>>\n>>> # Initialize Claptcha object\n>>> c = Claptcha(\"Text\", \"FreeMono.ttf\")\n>>>\n>>> # Create a PIL Image object, return it and provided text\n>>> c.image\n('Text', )\n>>>\n>>> # Create a BytesIO object, return it and provided text\n>>> c.bytes\n('Text', <_io.BytesIO object at 0xb71e87dc>)\n>>>\n>>> # Save image in 'claptcha.png' file, return its path and provided text\n>>> c.write('claptcha.png')\n('Text', 'test.png')\n>>>\n>>> def captchaStr():\n... return \"TextFromFunc\"\n...\n>>> # Redefine c: change its size to 100x30, use bicubic resampling filter\n>>> # and add white noise\n>>> from PIL import Image\n>>> c = Claptcha(captchaStr, \"FreeMono.ttf\", (100,30),\n... resampling=Image.BICUBIC, noise=0.3)\n>>> c.image\n('TextFromFunc', )", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/kuszaj/claptcha/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "claptcha", "package_url": "https://pypi.org/project/claptcha/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/claptcha/", "project_urls": { "Homepage": "https://github.com/kuszaj/claptcha/" }, "release_url": "https://pypi.org/project/claptcha/0.3.3/", "requires_dist": [ "Pillow" ], "requires_python": "", "summary": "A simple CAPTCHA image generator", "version": "0.3.3" }, "last_serial": 2631525, "releases": { "0.3.1": [ { "comment_text": "", "digests": { "md5": "8ba66389e87a1ee2407502fa9c585a80", "sha256": "2d360196e7c3dc45300fbfaee4e1c0b4c213b0112cff5dd5c9852bc3c0dabc65" }, "downloads": -1, "filename": "claptcha-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8ba66389e87a1ee2407502fa9c585a80", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3370, "upload_time": "2017-02-08T22:12:12", "url": "https://files.pythonhosted.org/packages/8f/19/b45275d0a7356caa84dd107480a0a5b78dcf863e634710a603bd0c91e346/claptcha-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ed8952d8c4141144f51925eb60d2fad0", "sha256": "e9d2920e7d4e42197062fecd2d8494ae5d45dbacaa5a7cae24b410d97eadc637" }, "downloads": -1, "filename": "claptcha-0.3.1.tar.gz", "has_sig": false, "md5_digest": "ed8952d8c4141144f51925eb60d2fad0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1670, "upload_time": "2017-02-08T22:12:24", "url": "https://files.pythonhosted.org/packages/16/3d/0db85d7a8b1d505430b08333220f5bd238f9b9937114e5da53aa3cc0d70a/claptcha-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "16ce69bfd6e4287f782cec24643a52f9", "sha256": "2aa4c08379834d1d08f20292e959972a901d863afce23c682c2474b353b58b5e" }, "downloads": -1, "filename": "claptcha-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "16ce69bfd6e4287f782cec24643a52f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7749, "upload_time": "2017-02-09T12:48:14", "url": "https://files.pythonhosted.org/packages/5b/69/b43c8da3463c9f971a60271fa8d1ac7123fe8900738f07af55c7a9d34e40/claptcha-0.3.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "49d63f03e23dd01c2230d8fb602c76a2", "sha256": "6a243eed1f0ee008836bf96cec1d210fcea53b39cc4dda1dbc8c32d242e30984" }, "downloads": -1, "filename": "claptcha-0.3.2.tar.gz", "has_sig": false, "md5_digest": "49d63f03e23dd01c2230d8fb602c76a2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5102, "upload_time": "2017-02-09T12:48:16", "url": "https://files.pythonhosted.org/packages/e4/95/9782db55b3736e42fb0b397b8a5ccb72af90a23b2b44e622cc61966dc82e/claptcha-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "7d1a8f32c4a54f019dd3e86859d0b06a", "sha256": "0b25b2c0cf95100f7c45eadf85eb083a9df56dad50354918ce336f68a9144fb2" }, "downloads": -1, "filename": "claptcha-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7d1a8f32c4a54f019dd3e86859d0b06a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7861, "upload_time": "2017-02-09T19:15:25", "url": "https://files.pythonhosted.org/packages/5c/87/1464bcc3257bc4e9acbd48346366e3f00f7b4f688843799b2841a9b92332/claptcha-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e66dfb74100e9a54e102a678530b987", "sha256": "a5669abc1b15ff5e0f2b9beda932ddbfaa7f5d1b58f1f2d823fdcecabca6a3cc" }, "downloads": -1, "filename": "claptcha-0.3.3.tar.gz", "has_sig": false, "md5_digest": "7e66dfb74100e9a54e102a678530b987", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5193, "upload_time": "2017-02-09T19:15:27", "url": "https://files.pythonhosted.org/packages/be/0e/7bc63916ec15940634d1ea294c510e0c0a338945e09a0ca805fd4749f9dd/claptcha-0.3.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7d1a8f32c4a54f019dd3e86859d0b06a", "sha256": "0b25b2c0cf95100f7c45eadf85eb083a9df56dad50354918ce336f68a9144fb2" }, "downloads": -1, "filename": "claptcha-0.3.3-py3-none-any.whl", "has_sig": false, "md5_digest": "7d1a8f32c4a54f019dd3e86859d0b06a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7861, "upload_time": "2017-02-09T19:15:25", "url": "https://files.pythonhosted.org/packages/5c/87/1464bcc3257bc4e9acbd48346366e3f00f7b4f688843799b2841a9b92332/claptcha-0.3.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7e66dfb74100e9a54e102a678530b987", "sha256": "a5669abc1b15ff5e0f2b9beda932ddbfaa7f5d1b58f1f2d823fdcecabca6a3cc" }, "downloads": -1, "filename": "claptcha-0.3.3.tar.gz", "has_sig": false, "md5_digest": "7e66dfb74100e9a54e102a678530b987", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5193, "upload_time": "2017-02-09T19:15:27", "url": "https://files.pythonhosted.org/packages/be/0e/7bc63916ec15940634d1ea294c510e0c0a338945e09a0ca805fd4749f9dd/claptcha-0.3.3.tar.gz" } ] }