Skip to main content

A useful verification code generation tool.

Project description

代码示例

from gvcode import VerificationCode


if __name__ == '__main__':    
    vc = VerificationCode()
    # 验证码类型
    # 自定义验证码
    # vc.generate('abcd')
    # 数字验证码
    # vc.generate_digit()
    # 字母验证码
    # vc.generate_alpha()
    # 数字字符混合验证码
    vc.generate_mix()

    # 图片字节码
    # print(vc.get_img_bytes())
    # 图片base64编码
    # print(vc.get_img_base64())
    # 保存图片
    vc.save()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gvcode-0.0.1.tar.gz (15.5 kB view hashes)

Uploaded Source

Built Distribution

gvcode-0.0.1-py3-none-any.whl (15.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page