推荐学习书目
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
menduo
V2EX  ›  Python

快递鸟 kdniao Python sdk,支持 tornado 异步客户端

  •  1
     
  •   menduo ·
    menduo · Mar 7, 2017 · 3415 views
    This topic created in 3354 days ago, the information mentioned may be changed or developed.

    写了一个快递鸟的 Python client 。 求 start 、 fork ,一起完善。

    链接

    截图(终端)

    Install 安装

    pip install -u kdniao
    

    Usage 使用

    依赖

    无论是在程序里,还是在命令行中,你都必须先获得快递鸟官方分配给你的 app id 及 app key 。

    在命令行运行 kdniao 命令时,需要在命令行参数中指定 id 与 key ,或者预先在环境变量中指定 KDNIAO_APP_IDKDNIAO_APP_KEY。如:

    1. KDNIAO_APP_ID={你的 ID} KDNIAO_APP_KEY={你的 Key} kdniao {运单号},或:
    2. ~/.bash_profile 中设置变量,并重新打开 shell 执行: kdniao {运单号},或:
    3. kdniao {运单号} --ik={APP_ID},{APP_KEY}

    Command Line 命令行

    $ kdniao {运单号} --s=快递公司编码 --o=订单号 --ik={APP_ID},{APP_KEY}
    
    # 如:
    # $ kdniao 12345678 --s YTO
    # $ kdniao 12345678 --ik={APP_ID},{APP_KEY}
    

    更多介绍

    https://github.com/menduo/kdniao_python

    求 start 、 fork ,一起完善。

    menduo/kdniao_python: 快递鸟 kdniao python sdk, with tornado async http client support. https://github.com/menduo/kdniao_python

    4 replies    2017-03-11 22:49:30 +08:00
    loveminds
        1
    loveminds  
       Mar 8, 2017
    注册还得认证...
    menduo
        2
    menduo  
    OP
       Mar 8, 2017
    @loveminds 不需要吧,我记得当时就用手机号验证了一下就可以使用大部分接口了。
    long5270
        3
    long5270  
       Mar 10, 2017
    支持 打算使用
    menduo
        4
    menduo  
    OP
       Mar 11, 2017 via iPad
    @long5270 欢迎使用,有问题及时联系。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1137 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 23:04 · PVG 07:04 · LAX 16:04 · JFK 19:04
    ♥ Do have faith in what you're doing.