unofficial xixiang python sdk
Project description
XiXiang 熙香点餐
支持 Python 3.5+ 的熙香点餐非官方库
背景
因为我司点餐的人比较多,
想着加一个点餐服务做灾备,
于是就除了美餐我们还得支持熙香点餐。
安装
pip install xixiang
代码调用
import xixiang
try:
client = xixiang.XiXiang.login("1881881888", "hunter2")
menus = client.get_menus()
shops = client.get_businesses(menus[0])
dishes = client.get_items(shops[0], menus[0])
if any(dish for dish in dishes if dish.menu_name == "香酥鸡腿"):
print("今天有香酥鸡腿 :happy:")
else:
print("今天没有香酥鸡腿 :sad:")
except xixiang.XiXiangError as ex:
print("Error: {}".format(ex))
贡献
不论是任何疑问、想要的功能还是想吃的套餐都欢迎直接提 issue
假如你们公司是用美餐点餐的, 隔壁也有美餐的库噢~
:wink: 欢迎各种 PR
协议
宽松的 MIT 协议:
- ✔ 支持各种改写
- ✔ 支持你把代码作者都改成自己
- ✖ 不支持每天中午免费吃西贝莜面村
- ✖ 也不支持点大羊腿、掌中宝
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
xixiang-0.2.1.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file xixiang-0.2.1.tar.gz
.
File metadata
- Download URL: xixiang-0.2.1.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73678ac1a04a14be00b1a17016e079a0b31f58fb38916d46875af23ef52c0f9d |
|
MD5 | e87c167d99f833f20d38987fb389a705 |
|
BLAKE2b-256 | 3215ee7ae06da08b2ac0a9dc04f29777a73551f9beae3cd8f15cb0c8c874e7a2 |
File details
Details for the file xixiang-0.2.1-py2.py3-none-any.whl
.
File metadata
- Download URL: xixiang-0.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 835f88f4159852bf523ca29378090be8ed0839fbdca9c390e72b6a69ffb51a1d |
|
MD5 | fb20b792e98c6341f0456c2f11271932 |
|
BLAKE2b-256 | c8ca7c42d1a8b396c2404680accc28bedb55e8511f212026aed55c747e99e19f |