boonli-api-0.1.4
توضیحات
API allowing you to fecth menus from boonli.com
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | boonli-api-0.1.4 |
| نام | boonli-api |
| نسخه کتابخانه | 0.1.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Allan Beaufour |
| ایمیل نویسنده | allan@beaufour.dk |
| آدرس صفحه اصلی | https://github.com/beaufour/boonli_api |
| آدرس اینترنتی | https://pypi.org/project/boonli-api/ |
| مجوز | Apache-2.0 |
# Boonli API
[](https://github.com/beaufour/boonli_api/actions/workflows/pre-commit.yml) [](https://github.com/beaufour/boonli_api/actions/workflows/pre-commit.yml) [](https://coveralls.io/github/beaufour/boonli_api?branch=main) [](https://badge.fury.io/py/boonli_api)
This API allows you to retrieve the menus that were chosen on [Boonli](https://boonli.com).
## Usage
To get the menu information run:
> boonli_api/api.py -c <customer_id> -u <username> -p <password>
Where `customer_id` is the first part of the domain name where you login, like `my_school` in `https://myschool.boonli.com`.
To enable a lot of debug logging you can add `-v`.
## Web API
I have also created an API that can be deployed on Google Cloud Function that returns the menus as an iCalendar here: <https://github.com/beaufour/boonli_calendar>
## Notes
Boonli does not have an official API, so I reverse engineered it. It involves parsing two web pages which is always fragile. So it will probably break at some point.
نیازمندی
| مقدار | نام |
|---|---|
| >=2.28.1,<3.0.0 | requests |
| >=0.0.1,<0.0.2 | bs4 |
| >=4.9.1,<5.0.0 | lxml |
| >=0.9.1,<0.10.0 | requests-toolbelt |
| >=2.8.2,<3.0.0 | python-dateutil |
| >=4.1.0,<5.0.0 | icalendar |
| >=4.3.0,<4.4.0 | typing-extensions |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl boonli-api-0.1.4:
pip install boonli-api-0.1.4.whl
نصب پکیج tar.gz boonli-api-0.1.4:
pip install boonli-api-0.1.4.tar.gz