推荐学习书目
› 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 · Sep 5, 2017 · 4282 views
    This topic created in 3306 days ago, the information mentioned may be changed or developed.

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

    安装:

    pip install lilith
    

    使用:

    lilith sunp.eu.org
    

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

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

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

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

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

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

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

    (不过这项目的代码我自己已经看不懂了 Orz
    houbaron
        13
    houbaron  
       Sep 6, 2017 via Android
    莉莉丝…那我写个 eva,专门识别二维码
    misaka19000
        14
    misaka19000  
    OP
       Sep 6, 2017 via Android
    @gyh zsh 啊,软件是 iterm2
    misaka19000
        16
    misaka19000  
    OP
       Sep 6, 2017
    @7sDream #12 哇,膜拜大佬~~
    mingyun
        17
    mingyun  
       Sep 6, 2017
    @7sDream 这个好玩
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2652 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 03:38 · PVG 11:38 · LAX 20:38 · JFK 23:38
    ♥ Do have faith in what you're doing.