Python wrapper for Schoology’s API.
Installation
You may easily install schoolopy from PyPI with pip3 install schoolopy.
Example
More in-depth examples of both two- and three-legged authentication in action can be found in example-twolegged.py and example-threelegged.py. You will need to write your key and secret into example_config.yml.example and rename that file to example_config.yml.
Methods
This library contains a large number of functions for interaction with the API, and listing them all would be impractical.
For a comprehensive list of what endpoints are available, consult the REST API v1 documentation.
Most objects’ functions follow a similar pattern to the following example.
[realm] represents the name of any realm type; in this case you can use district, school, user, section, or group. Valid realms may vary for different objects.
event represents an Event object.
sc.get_events([realm]_id=)
sc.get_[realm]_events([realm]_id)
sc.create_event(event, [realm]_id=)
sc.create_[realm]_event(event, [realm]_id)
sc.get_event(event_id, [realm]_id=)
sc.get_[realm]_events([realm]_id)
sc.update_event(event, event_id, [realm]_id=)
sc.update_[realm]_event(event, event_id, [realm]_id)
sc.delete_event(event_id, [realm]_id=)
sc.delete_[realm]_event(event_id, [realm]_id)
Note: Some methods, such as `get_courses`, are currently broken because Schoology’s API has stopped providing data on the relevant endpoints.
Licensing
This software is available under the MIT License.
Release files for schoolopy 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| schoolopy-0.3.1.tar.gz | 17.0 kB | Details |
Release files / schoolopy-0.3.1.tar.gz
| Download URL | schoolopy-0.3.1.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3eb753588ce65e637a64956f398a329ad9e3d54822ab29845100aed63e6472d1
|
|
BLAKE2b-256 checksum How to use checksums |
914153a9385b0bd439ac41dcad6d8811b327ace195ce263dc8e2d564732e816f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.16
|