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

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

  •  1
     
  •   menduo ·
    menduo · 2017-03-07 22:53:03 +08:00 · 2574 次点击
    这是一个创建于 2579 天前的主题,其中的信息可能已经有所发展或是发生改变。

    写了一个快递鸟的 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 条回复    2017-03-11 22:49:30 +08:00
    loveminds
        1
    loveminds  
       2017-03-08 10:58:23 +08:00
    注册还得认证...
    menduo
        2
    menduo  
    OP
       2017-03-08 11:13:07 +08:00
    @loveminds 不需要吧,我记得当时就用手机号验证了一下就可以使用大部分接口了。
    long5270
        3
    long5270  
       2017-03-10 16:43:43 +08:00
    支持 打算使用
    menduo
        4
    menduo  
    OP
       2017-03-11 22:49:30 +08:00 via iPad
    @long5270 欢迎使用,有问题及时联系。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2673 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.