{"id":21078377,"url":"https://github.com/lki/meican","last_synced_at":"2025-05-16T08:31:42.281Z","repository":{"id":49544384,"uuid":"76794266","full_name":"LKI/meican","owner":"LKI","description":"MeiCan Python SDK. 美餐点餐库 + 命令行工具。","archived":false,"fork":false,"pushed_at":"2023-12-04T10:35:26.000Z","size":128,"stargazers_count":69,"open_issues_count":5,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-19T15:56:23.059Z","etag":null,"topics":["command-line","dinner-picker","meal-management","meican","python-sdk"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/meican/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LKI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-18T16:38:18.000Z","updated_at":"2023-12-04T10:33:18.000Z","dependencies_parsed_at":"2023-01-25T11:00:38.488Z","dependency_job_id":null,"html_url":"https://github.com/LKI/meican","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKI%2Fmeican","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKI%2Fmeican/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKI%2Fmeican/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LKI%2Fmeican/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LKI","download_url":"https://codeload.github.com/LKI/meican/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225414911,"owners_count":17470810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line","dinner-picker","meal-management","meican","python-sdk"],"created_at":"2024-11-19T19:40:16.927Z","updated_at":"2024-11-19T19:40:17.628Z","avatar_url":"https://github.com/LKI.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MeiCan 美餐\n[![PyPI](https://img.shields.io/pypi/v/meican.svg)](https://pypi.python.org/pypi/meican)\n[![Build](https://github.com/LKI/meican/workflows/Build/badge.svg)](https://github.com/LKI/meican)\n\n\u003e 同时支持 Python 3.6+ 与命令行调用的美餐点餐非官方库\n\n山上的朋友！\n树上的朋友！\n有选择困难症的朋友！\n每周都忘记点饭的朋友！\n每天都想点同一个套餐的朋友！\n\n:ghost: 懒人们！\n快快解放双手来点美餐吧~\n\n\n## 背景\n\n最开始是因为[我司](https://www.lagou.com/gongsi/j86312.html)用的美餐服务，\n所以就写了个命令行脚本内部点餐用。\n\n后来发现其实大家会有自己动手实现点单逻辑的需求，\n就做成了这个开源库啦。\n\n\n## 安装\n\n通过pip:\n\n```bash\npip install meican\n```\n\n\n## 代码调用\n\n```python\nfrom meican import MeiCan, MeiCanLoginFail, NoOrderAvailable\n\ntry:\n    meican = MeiCan('username@domain', 'hunter2')  # login\n    dishes = meican.list_dishes()\n    if any(dish for dish in dishes if dish.name == '香酥鸡腿'):\n        print('今天有香酥鸡腿 :happy:')\n    else:\n        print('今天没有香酥鸡腿 :sad:')\nexcept NoOrderAvailable:\n    print('今天没有开放点餐')\nexcept MeiCanLoginFail:\n    print('用户名或者密码不正确')\n```\n\n\n## 命令行调用\n\n```bash\nmeican  # 查询下次点啥菜\nmeican -o 香酥  # 点包含 香酥 关键字的菜，比如香酥鸡腿\n```\n\n\n## 贡献\n\n不论是任何疑问、想要的功能~~还是想吃的套餐~~都欢迎[直接提 issue](https://github.com/LKI/meican/issues/new)\n\n假如你们公司是用熙香点餐的，\n[隔壁也有熙香的库噢~](https://github.com/LKI/xixiang)\n\n:wink: 欢迎各种 PR\n\n\n## 协议\n\n宽松的 [MIT](https://github.com/LKI/meican/blob/master/LICENSE) 协议：\n\n- ✔ 支持各种改写\n- ✔ 支持你把代码作者都改成自己\n- ✖ 不支持每天中午免费吃西贝莜面村\n- ✖ 也不支持点大羊腿、掌中宝\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flki%2Fmeican","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flki%2Fmeican","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flki%2Fmeican/lists"}