A small async API wrapper for Infinite Campus Parents.
Project description
Infinite Campus Parent API
This is an async wrapper for the Infinite Campus API. There are a few types of objects this will retrieve based on the assumption that you are a parent with students enrolled with Canvas.
The types of objects that can be returned include:
- Students
- Courses
- Assignments
- Terms
This module is provided for use with the Home Assistant custom integration Infinite Campus however it could be useful as a standalone module for your own projects as well.
Installing
To install the module use:
python3 -m pip install ic-parent-api
Usage
Example usage to get students, printing first names:
import asyncio
from ic_parent_api import InfiniteCampus
base_url = "https://school.infinitecampus.com"
username = "myusername"
password = "myp4ssw0rd!"
district = "schooldistrict"
async def get_students():
client = InfiniteCampus(f"{base_url}",f"{username}",f"{password},f"{district})
return await client.students()
students = asyncio.run(get_students())
for student in students:
print(student.firstname)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ic_parent_api-0.0.7.tar.gz
(11.6 kB
view hashes)
Built Distribution
Close
Hashes for ic_parent_api-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 711b85f02d2b1410158098bafcc4449d6b910edb07b4eaf3528f0bfd2d6eadf9 |
|
MD5 | e5f3ab98fadcdd9ab2939a9427929fb5 |
|
BLAKE2b-256 | 016eb35c4a989d09c8543a3b90e629c3f1c1f959f2b19c297aeb00c4d777c49e |