classcharts.py-0.1.1
توضیحات
A python wrapper for the Classcharts API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | classcharts.py-0.1.1 |
| نام | classcharts.py |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | NCPlayz |
| ایمیل نویسنده | chowdhurynadir0@outlook.com |
| آدرس صفحه اصلی | https://github.com/NCPlayz/classcharts.py |
| آدرس اینترنتی | https://pypi.org/project/classcharts.py/ |
| مجوز | MIT |
# classcharts.py
An unofficial API wrapper for the ClassCharts homework and student API.
It is work-in-progress.
## Examples
Examples are using the asyncio REPL.
```py
>>> import asyncio
>>> import datetime
>>> import classcharts
>>> hc = classcharts.HomeworkClient("Your_School_Here")
>>> await hc.request(datetime.datetime.now(), 7)
[<Homework ...>, <Homework ...>]
```
```py
>>> import asyncio
>>> import datetime
>>> import classcharts
>>> sc = classcharts.StudentClient("MYC0D3", datetime.datetime(year=1970, month=1, day=1))
>>> await sc.detentions()
[<Detention ...>, <Detention ...>]
```
## Requirements
- `aiohttp`
- `beautifulsoup4`
- `lxml`
## Install
```sh
$ python -m pip install -U classcharts.py
```
نیازمندی
| مقدار | نام |
|---|---|
| >=3.6.2 | aiohttp |
| >=4.8.2 | beautifulsoup4 |
| >=4.5.0 | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7.0 | Python |
نحوه نصب
نصب پکیج whl classcharts.py-0.1.1:
pip install classcharts.py-0.1.1.whl
نصب پکیج tar.gz classcharts.py-0.1.1:
pip install classcharts.py-0.1.1.tar.gz