Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.

NCPlayz/classcharts.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

>>> import asyncio
>>> import datetime   
>>> import classcharts
>>> hc = classcharts.HomeworkClient("Your_School_Here")
>>> await hc.request(datetime.datetime.now(), 7)
[<Homework ...>, <Homework ...>]
>>> 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

$ python -m pip install -U classcharts.py