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
Release history Release notifications | RSS feed
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.2.tar.gz
(16.6 kB
view hashes)
Built Distribution
gvcode-0.0.2-py3-none-any.whl
(15.8 kB
view hashes)