captcha


Namecaptcha JSON
Version 0.7.0 PyPI version JSON
download
home_pageNone
SummaryA captcha library that generates audio and image CAPTCHAs.
upload_time2025-02-20 08:18:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseBSD-3-Clause
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
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/33/85/3be9b92a8bc3f545612a65c118f0e5ffff5982c9ee3df7989fd479852e03/captcha-0.7.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.7.0",
    "project_urls": {
        "Documentation": "https://captcha.lepture.com/",
        "Source": "https://github.com/lepture/captcha"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "24a7435bc02a15f5566ea372d9dc2916889df9b79dfaa26e3337bab6abbfa7da",
                "md5": "0a2fb66b8142a96f43d4775d589ff76f",
                "sha256": "b8b5c447b0881b71065cf6d7169ce112213164a5e52d133df0c9ca18f2566396"
            },
            "downloads": -1,
            "filename": "captcha-0.7.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0a2fb66b8142a96f43d4775d589ff76f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 147464,
            "upload_time": "2025-02-20T08:18:47",
            "upload_time_iso_8601": "2025-02-20T08:18:47.920941Z",
            "url": "https://files.pythonhosted.org/packages/24/a7/435bc02a15f5566ea372d9dc2916889df9b79dfaa26e3337bab6abbfa7da/captcha-0.7.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "33853be9b92a8bc3f545612a65c118f0e5ffff5982c9ee3df7989fd479852e03",
                "md5": "26f78b8a6c9b2bed3afef1545075283f",
                "sha256": "2cad3be371c320256efb64dda2004b8803c13755f2040baca0d9f6dfa6e34852"
            },
            "downloads": -1,
            "filename": "captcha-0.7.0.tar.gz",
            "has_sig": false,
            "md5_digest": "26f78b8a6c9b2bed3afef1545075283f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 226424,
            "upload_time": "2025-02-20T08:18:50",
            "upload_time_iso_8601": "2025-02-20T08:18:50.087871Z",
            "url": "https://files.pythonhosted.org/packages/33/85/3be9b92a8bc3f545612a65c118f0e5ffff5982c9ee3df7989fd479852e03/captcha-0.7.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-20 08:18:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lepture",
    "github_project": "captcha",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "captcha"
}
        
Elapsed time: 0.99368s