captcha


Namecaptcha JSON
Version 0.6.0 PyPI version JSON
download
home_pageNone
SummaryA captcha library that generates audio and image CAPTCHAs.
upload_time2024-07-18 13:40:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements Pillow types-Pillow pytest pytest-cov flake8 mypy
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Captcha
=======

A captcha library that generates audio and image CAPTCHAs.

Features
--------

1. Audio CAPTCHAs
2. Image CAPTCHAs


Installation
------------

Install captcha with pip::

    $ pip install captcha

Usage
-----

Audio and Image CAPTCHAs are in separated modules:

.. code-block:: python

    from captcha.audio import AudioCaptcha
    from captcha.image import ImageCaptcha

    audio = AudioCaptcha(voicedir='/path/to/voices')
    image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])

    data = audio.generate('1234')
    audio.write('1234', 'out.wav')

    data = image.generate('1234')
    image.write('1234', 'out.png')

This is the APIs for your daily works. We do have built-in voice data and font
data. But it is suggested that you use your own voice and font data.

Useful Links
------------

1. GitHub: https://github.com/lepture/captcha
2. Docs: https://captcha.lepture.com/


License
-------

Licensed under BSD. Please see LICENSE for licensing details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "captcha",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Hsiaoming Yang <me@lepture.com>",
    "download_url": "https://files.pythonhosted.org/packages/48/4c/547742298d99408a7172aa5b1328b6bb9d85234b4082e0fd379f9b893615/captcha-0.6.0.tar.gz",
    "platform": null,
    "description": "Captcha\n=======\n\nA captcha library that generates audio and image CAPTCHAs.\n\nFeatures\n--------\n\n1. Audio CAPTCHAs\n2. Image CAPTCHAs\n\n\nInstallation\n------------\n\nInstall captcha with pip::\n\n    $ pip install captcha\n\nUsage\n-----\n\nAudio and Image CAPTCHAs are in separated modules:\n\n.. code-block:: python\n\n    from captcha.audio import AudioCaptcha\n    from captcha.image import ImageCaptcha\n\n    audio = AudioCaptcha(voicedir='/path/to/voices')\n    image = ImageCaptcha(fonts=['/path/A.ttf', '/path/B.ttf'])\n\n    data = audio.generate('1234')\n    audio.write('1234', 'out.wav')\n\n    data = image.generate('1234')\n    image.write('1234', 'out.png')\n\nThis is the APIs for your daily works. We do have built-in voice data and font\ndata. But it is suggested that you use your own voice and font data.\n\nUseful Links\n------------\n\n1. GitHub: https://github.com/lepture/captcha\n2. Docs: https://captcha.lepture.com/\n\n\nLicense\n-------\n\nLicensed under BSD. Please see LICENSE for licensing details.\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "A captcha library that generates audio and image CAPTCHAs.",
    "version": "0.6.0",
    "project_urls": {
        "Documentation": "https://captcha.lepture.com/",
        "Source": "https://github.com/lepture/captcha"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c0f29af6abd7b07e4709a7d698fee6fa7ce7fb9814886b18de61580311b0fe96",
                "md5": "a6a494da565c012bc866b1d764052c77",
                "sha256": "148b2475be00a067b6173b7796cdc2332dbcb6fd4bfced1055bc8f69846bc924"
            },
            "downloads": -1,
            "filename": "captcha-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a6a494da565c012bc866b1d764052c77",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 102241,
            "upload_time": "2024-07-18T13:40:33",
            "upload_time_iso_8601": "2024-07-18T13:40:33.740416Z",
            "url": "https://files.pythonhosted.org/packages/c0/f2/9af6abd7b07e4709a7d698fee6fa7ce7fb9814886b18de61580311b0fe96/captcha-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "484c547742298d99408a7172aa5b1328b6bb9d85234b4082e0fd379f9b893615",
                "md5": "98d3682c39448ca651e48ddd3fbb6d35",
                "sha256": "a5ead7679cd8477bc636524d54f50e092a4b6f3db4e52bb98a689593638d1772"
            },
            "downloads": -1,
            "filename": "captcha-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "98d3682c39448ca651e48ddd3fbb6d35",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 187610,
            "upload_time": "2024-07-18T13:40:35",
            "upload_time_iso_8601": "2024-07-18T13:40:35.205643Z",
            "url": "https://files.pythonhosted.org/packages/48/4c/547742298d99408a7172aa5b1328b6bb9d85234b4082e0fd379f9b893615/captcha-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-18 13:40:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lepture",
    "github_project": "captcha",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Pillow",
            "specs": []
        },
        {
            "name": "types-Pillow",
            "specs": []
        },
        {
            "name": "pytest",
            "specs": []
        },
        {
            "name": "pytest-cov",
            "specs": []
        },
        {
            "name": "flake8",
            "specs": []
        },
        {
            "name": "mypy",
            "specs": []
        }
    ],
    "lcname": "captcha"
}
        
Elapsed time: 0.96376s