Skip to main content

A python wrapper for the Classcharts API

Project description

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 ...>]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

classcharts.py-0.1.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

classcharts.py-0.1.0-py3-none-any.whl (7.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page