V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
veezzz
V2EX  ›  Python

python 上有没有比较好的验证码生成包

  •  
  •   veezzz · 2014-11-07 13:43:29 +08:00 · 4081 次点击
    这是一个创建于 3466 天前的主题,其中的信息可能已经有所发展或是发生改变。
    7 条回复    2014-11-08 19:19:19 +08:00
    gkiwi
        1
    gkiwi  
       2014-11-07 14:00:38 +08:00
    什么叫验证码生成包?
    random.randint(10E6,10E7) + redis
    gkiwi
        2
    gkiwi  
       2014-11-07 14:01:53 +08:00
    sorry,最近在做手机验证码...
    veezzz
        3
    veezzz  
    OP
       2014-11-07 14:05:06 +08:00
    @gkiwi 就是用于生成验证码图片的python模块
    gkiwi
        4
    gkiwi  
       2014-11-07 14:32:29 +08:00   ❤️ 1
    @veezzz 你试试这个:http://codingnow.cn/language/627.html

    我本地测试ok通过,可以直接产生验证码:)

    注意修改下font_type为你的机器支持的,我用绝对路径测试ok.
    veezzz
        5
    veezzz  
    OP
       2014-11-07 15:06:46 +08:00
    @gkiwi 多谢,本来我想着验证码用得挺多的应该很多这类的模块就不用重复造轮子了,后来发现简单的实现起来其实也不是太复杂,可以自己实现一个,我找到个wheezy.captcha还不错,总之感谢你的帮助。
    bing1178
        6
    bing1178  
       2014-11-08 01:09:05 +08:00
    同求
    veezzz
        7
    veezzz  
    OP
       2014-11-08 19:19:19 +08:00
    @bing1178 wheezy.captcha 还不错https://bitbucket.org/akorn/wheezy.captcha/overview
    单文件,可以自己根据需求改,
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2423 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:22 · PVG 23:22 · LAX 08:22 · JFK 11:22
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.