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
At the login page inspect the page with developer tools and search for the hidden input with the name appName. Like in the image below.
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" #known as appName to infinitecampus
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)
Metadata
Release files for ic-parent-api 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ic_parent_api-0.0.16.tar.gz | 12.0 kB | Without provenance | Details for ic_parent_api-0.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ic_parent_api-0.0.16-py3-none-any.whl | Python 3 | none | any | Details for ic_parent_api-0.0.16-py3-none-any.whl |
Total release size: 26.5 kB
Release files / ic_parent_api-0.0.16.tar.gz
| Download URL | ic_parent_api-0.0.16.tar.gz |
|---|---|
| Size | 12.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
49df509d296002e78f3f1214ab8aa3bf5cde4ae8ffd659c9b710f2da61f3fa82
|
|
BLAKE2b-256 checksum How to use checksums |
fd376b9514a52aeeeb4f925472a079d57632327620d96d70873734323392434c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.2
|
Release files / ic_parent_api-0.0.16-py3-none-any.whl
| Download URL | ic_parent_api-0.0.16-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dff3e42957039e8f9c867d84237afbc829a5cf442310c7e5ac0cba6fbc4d84d
|
|
BLAKE2b-256 checksum How to use checksums |
ba138f9db051adbe20da4e68c558762251cfa30fced8efac65861857923c1b06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.2
|
Security for ic-parent-api 0.0.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.