All Projects → LKI → meican

LKI / meican

Licence: MIT license
MeiCan Python SDK. 美餐点餐库 + 命令行工具。

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to meican

wxpusher-sdk-python
微信消息实时推送服务[WxPusher]的Python版本sdk,可以通过API实时给个人微信推送消息。wechat pusher.
Stars: ✭ 156 (+140%)
Mutual labels:  python-sdk
python-alerta-client
Unified command-line tool and python SDK for alerta
Stars: ✭ 26 (-60%)
Mutual labels:  python-sdk
googlecloud-storage-tutorial
💾 ☁️ Tutorial for interacting with Google Cloud Storage via the Python SDK.
Stars: ✭ 20 (-69.23%)
Mutual labels:  python-sdk
square-python-sdk
Python client library for the Square API
Stars: ✭ 72 (+10.77%)
Mutual labels:  python-sdk
ns1-python
NS1 Python SDK
Stars: ✭ 24 (-63.08%)
Mutual labels:  python-sdk
AvaTax-REST-V2-Python-SDK
Sales Tax API SDK for Python and AvaTax REST
Stars: ✭ 17 (-73.85%)
Mutual labels:  python-sdk
faxplus-python
Python SDK to use FAX.PLUS API
Stars: ✭ 54 (-16.92%)
Mutual labels:  python-sdk

MeiCan 美餐

PyPI Build

同时支持 Python 3.6+ 与命令行调用的美餐点餐非官方库

山上的朋友! 树上的朋友! 有选择困难症的朋友! 每周都忘记点饭的朋友! 每天都想点同一个套餐的朋友!

👻 懒人们! 快快解放双手来点美餐吧~

背景

最开始是因为我司用的美餐服务, 所以就写了个命令行脚本内部点餐用。

后来发现其实大家会有自己动手实现点单逻辑的需求, 就做成了这个开源库啦。

安装

通过pip:

pip install meican

代码调用

from meican import MeiCan, MeiCanLoginFail, NoOrderAvailable

try:
    meican = MeiCan('username@domain', 'hunter2')  # login
    dishes = meican.list_dishes()
    if any(dish for dish in dishes if dish.name == '香酥鸡腿'):
        print('今天有香酥鸡腿 :happy:')
    else:
        print('今天没有香酥鸡腿 :sad:')
except NoOrderAvailable:
    print('今天没有开放点餐')
except MeiCanLoginFail:
    print('用户名或者密码不正确')

命令行调用

meican  # 查询下次点啥菜
meican -o 香酥  # 点包含 香酥 关键字的菜,比如香酥鸡腿

贡献

不论是任何疑问、想要的功能还是想吃的套餐都欢迎直接提 issue

假如你们公司是用熙香点餐的, 隔壁也有熙香的库噢~

😉 欢迎各种 PR

协议

宽松的 MIT 协议:

  • 支持各种改写
  • 支持你把代码作者都改成自己
  • 不支持每天中午免费吃西贝莜面村
  • 也不支持点大羊腿、掌中宝
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].