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
misaka19000
V2EX  ›  Python

用 Python 写了个命令行生成二维码的软件

  •  
  •   misaka19000 ·
    RitterHou · 2017-09-05 20:45:15 +08:00 · 3209 次点击
    这是一个创建于 2396 天前的主题,其中的信息可能已经有所发展或是发生改变。

    源码:https://github.com/RitterHou/Lilith 欢迎 star,欢迎 fork~~

    安装:

    pip install lilith
    

    使用:

    lilith v2ex.com
    

    详细的操作过程可以参考 demo

    17 条回复    2017-09-06 21:11:45 +08:00
    awolfly9
        1
    awolfly9  
       2017-09-05 21:08:11 +08:00
    实验了一下,有趣
    awolfly9
        2
    awolfly9  
       2017-09-05 21:11:11 +08:00
    @misaka19000 建议增加一些参数,比如直接写入到文件、显示大小等
    notolddriver
        3
    notolddriver  
       2017-09-05 21:29:29 +08:00 via iPhone
    qrencode
    fhefh
        4
    fhefh  
       2017-09-05 21:32:10 +08:00
    学习了 谢谢楼主分享 ~~~
    weihongchang
        5
    weihongchang  
       2017-09-05 21:48:56 +08:00
    扫描识别不了
    gyh
        6
    gyh  
       2017-09-05 22:03:24 +08:00
    这是什么终端好漂亮
    misaka19000
        7
    misaka19000  
    OP
       2017-09-05 22:04:27 +08:00
    @weihongchang #5 怎么会识别不了呢?

    要不使用 lilith http://www.v2ex.com 试试看?
    是不是因为没有加 http 啊?
    misaka19000
        8
    misaka19000  
    OP
       2017-09-05 22:06:50 +08:00
    @awolfly9 #2 之前也想着加上的,后来偷懒就一直没加,后面看有时间就把加上去吧

    PS: 如果你有兴趣实现一些功能的话也欢迎提 pr~~
    albertofwb
        9
    albertofwb  
       2017-09-05 22:09:19 +08:00 via Android
    qrcode +1
    allenhu
        10
    allenhu  
       2017-09-05 23:48:15 +08:00 via Android
    不是已经有了一个甚至能生成 gif 的轮子了吗?
    lanpong
        11
    lanpong  
       2017-09-06 00:03:01 +08:00 via iPhone
    参观学习一下
    7sDream
        12
    7sDream  
       2017-09-06 00:44:05 +08:00
    https://github.com/7sDream/pyqart

    纯 Python 实现的二维码编码器,除了导出图片那一步用到了 pillow,其它没有用任何三方库,直接看 ISO 标准撸的。

    性能可能略慢,没优化,不过想研究二维码生成机制,相关标准的可以看看。

    附带了几种常用的图片修饰策略。

    (不过这项目的代码我自己已经看不懂了 Orz
    houbaron
        13
    houbaron  
       2017-09-06 08:04:33 +08:00 via Android
    莉莉丝…那我写个 eva,专门识别二维码
    misaka19000
        14
    misaka19000  
    OP
       2017-09-06 08:44:47 +08:00 via Android
    @gyh zsh 啊,软件是 iterm2
    fuxkcsdn
        15
    fuxkcsdn  
       2017-09-06 09:21:12 +08:00 via iPhone
    misaka19000
        16
    misaka19000  
    OP
       2017-09-06 10:44:33 +08:00
    @7sDream #12 哇,膜拜大佬~~
    mingyun
        17
    mingyun  
       2017-09-06 21:11:45 +08:00
    @7sDream 这个好玩
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5319 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 08:10 · PVG 16:10 · LAX 01:10 · JFK 04:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.