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

Requirements

  • aiohttp
  • beautifulsoup4
  • lxml

Install

$ python -m pip install -U classcharts.py

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.1.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

classcharts.py-0.1.1-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file classcharts.py-0.1.1.tar.gz.

File metadata

  • Download URL: classcharts.py-0.1.1.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for classcharts.py-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5486d23fce235aab03d4e304457cd69a71283868c94897b3713bc80bf79948ec
MD5 4ef28dbf85c1be58ad90375ef715229e
BLAKE2b-256 45c34987d9d484aece9af737490eb5c317893164c5bc843cc9d4a1b86932bb80

See more details on using hashes here.

File details

Details for the file classcharts.py-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: classcharts.py-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for classcharts.py-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9a31671287c7df5a793188f186dfe6fede4a08de184f2f715418da4964cb1a2b
MD5 d97024e7a60adc0d4d2260d7d967dcb0
BLAKE2b-256 2b1e85c1a506c02d1c39807c99bd58c777fefafc2811d8903995b49df63c8482

See more details on using hashes here.

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