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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gvcode-0.0.1.tar.gz.

File metadata

  • Download URL: gvcode-0.0.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0

File hashes

Hashes for gvcode-0.0.1.tar.gz
Algorithm Hash digest
SHA256 baa291e0400a8d664119800033d15ba6ccd4d90a60613e9eca373732f3904390
MD5 971ce5d8ee6af2c7ae652c46ff683158
BLAKE2b-256 9c701454872bf8531419df0a2f441aeb9f64ca2678094cd5f586b2a7998de115

See more details on using hashes here.

File details

Details for the file gvcode-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: gvcode-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.0

File hashes

Hashes for gvcode-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e8d6e5047279fb3c20824e1a753226c509d58e7f3689a10070903b2475ed9ca
MD5 df0f499c38e51e3d218d3358852aa85e
BLAKE2b-256 6eaab34a292344ad75c538f8f2233c1d70230f62877bbb4d246e837a73660021

See more details on using hashes here.

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