Skip to content

A python wrapper for the Classcharts API

License

Notifications You must be signed in to change notification settings

lgibson02/classcharts.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 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

About

A python wrapper for the Classcharts API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%