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 年 9 月 5 日 · 3915 次点击
    这是一个创建于 3071 天前的主题,其中的信息可能已经有所发展或是发生改变。

    源码: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 年 9 月 5 日
    实验了一下,有趣
    awolfly9
        2
    awolfly9  
       2017 年 9 月 5 日
    @misaka19000 建议增加一些参数,比如直接写入到文件、显示大小等
    notolddriver
        3
    notolddriver  
       2017 年 9 月 5 日 via iPhone
    qrencode
    fhefh
        4
    fhefh  
       2017 年 9 月 5 日
    学习了 谢谢楼主分享 ~~~
    weihongchang
        5
    weihongchang  
       2017 年 9 月 5 日
    扫描识别不了
    gyh
        6
    gyh  
       2017 年 9 月 5 日
    这是什么终端好漂亮
    misaka19000
        7
    misaka19000  
    OP
       2017 年 9 月 5 日
    @weihongchang #5 怎么会识别不了呢?

    要不使用 lilith http://www.v2ex.com 试试看?
    是不是因为没有加 http 啊?
    misaka19000
        8
    misaka19000  
    OP
       2017 年 9 月 5 日
    @awolfly9 #2 之前也想着加上的,后来偷懒就一直没加,后面看有时间就把加上去吧

    PS: 如果你有兴趣实现一些功能的话也欢迎提 pr~~
    albertofwb
        9
    albertofwb  
       2017 年 9 月 5 日 via Android
    qrcode +1
    allenhu
        10
    allenhu  
       2017 年 9 月 5 日 via Android
    不是已经有了一个甚至能生成 gif 的轮子了吗?
    lanpong
        11
    lanpong  
       2017 年 9 月 6 日 via iPhone
    参观学习一下
    7sDream
        12
    7sDream  
       2017 年 9 月 6 日
    https://github.com/7sDream/pyqart

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

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

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

    (不过这项目的代码我自己已经看不懂了 Orz
    houbaron
        13
    houbaron  
       2017 年 9 月 6 日 via Android
    莉莉丝…那我写个 eva,专门识别二维码
    misaka19000
        14
    misaka19000  
    OP
       2017 年 9 月 6 日 via Android
    @gyh zsh 啊,软件是 iterm2
    fuxkcsdn
        15
    fuxkcsdn  
       2017 年 9 月 6 日 via iPhone
    misaka19000
        16
    misaka19000  
    OP
       2017 年 9 月 6 日
    @7sDream #12 哇,膜拜大佬~~
    mingyun
        17
    mingyun  
       2017 年 9 月 6 日
    @7sDream 这个好玩
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   4739 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:46 · PVG 15:46 · LAX 23:46 · JFK 02:46
    ♥ Do have faith in what you're doing.