xixiang 0.3.1
pip install xixiang
Latest version
Released:
unofficial xixiang python sdk
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Lirian Su
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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Lirian Su
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
Built Distribution
File details
Details for the file xixiang-0.3.1.tar.gz
.
File metadata
- Download URL: xixiang-0.3.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cb9e97d58875073cd79b7fc0e7c4f560f20cfc8aa027f6eb2474ee075aa5f0c |
|
MD5 | 174e1956793f0d3c52f4f329c10d09c7 |
|
BLAKE2b-256 | 930dd9e950372a4c726f81c6db191a47eb7b020d60d6e891a344e6cb42844e1b |
File details
Details for the file xixiang-0.3.1-py2.py3-none-any.whl
.
File metadata
- Download URL: xixiang-0.3.1-py2.py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580c8e39b69f7cfbf80ecfc6d1f0f315aeab553d2822683259157bd7ed595096 |
|
MD5 | a586054e6ed008b4d89352a8dc9bb547 |
|
BLAKE2b-256 | 922c45a6daeb1f402d4324e2eb05c740bb494a9a97c968258667639b1e2101dc |