Skip to main content

PyPowerSchool

PyPI - Python Version PyPI MIT

PyPowerSchool is a basic Python wrapper for synchronous communication with the PowerSchool API. The goal is to simplify the process of communicating with the PowerSchool Student Information System API by handling authentication and decoding, allowing you to focus on using the data, not retrieving it.

PyPowerSchool is not endorsed, sponsored, or affilitated with PowerSchool in any way.


Table of Contents


PowerSchool Plugin

Before using PyPowerSchool, you will need to create and install a data access plugin on your PowerSchool server. Information about creating the plugin file can be found on the PowerSchool Developer Support site. We have created an example plugin (PSDataAccessCorePlugin) that you can use as is, or modify as you see fit. Once you have installed the plugin, you will be provided a client ID and client secret that you will use for authenticating with the PowerSchool server.

Usage

Begin by installing the PyPowerSchool module, using pip.

pip install pypowerschool

In your code, simply import the PyPowerSchool module and instantiate a new client object. The constructor requires three arguments:

  1. base_url - the base URL of your PowerSchool server
  2. client_id - client ID, found after installing the data access plugin
  3. client_secret - client secret, found after installing the data access plugin
from pypowerschool import powerschool

client = powerschool.Client('https://example.powerschool.com', 'client-id', 'client-secret')

Once you have a client, you can start making synchronous calls to the API.

# returns list of all schools in the current district
all_schools = client.schools_in_district()

# returns list of all students for school with ID of 3
students = client.students_for_school(3)

# returns dictionary of student with DCID of 1234
student = client.student_for_dcid(1234)

Refer to the endpoints.py file for other built-in methods. Additionally, you can use the fetch_item and fetch_items methods to access any PowerSchool endpoint. Basic support for POST has been included through the post_data method.

PowerQueries

PowerQueries are a feature that allows for the creation of custom API endpoints. PyPowerSchool only includes core endpoints and PowerQueries provided directly by PowerSchool. To add additional PowerQueries to PyPowerSchool, you will need to modify the plugin file (PSDataAccessCorePlugin) with the proper <access-request> elements.

Using a PowerQuery endpoint works just like any other endpoint. The powerquery method requires the PowerQuery endpoint URL and, optionally, a dictionary of arguements for the PowerQuery.

# returns a list of grade levels for the school and district office
grade_levels = client.powerquery('/ws/schema/query/com.pearson.core.schools.grade_levels')

# returns school information for the school with an ID of 1
school_details = client.powerquery('/ws/schema/query/com.pearson.core.school.school_detail', {'school_number':[1]})

Contributing

If you have a feature or idea you would like to see added to PyPowerSchool, please create an issue explaining your idea.

Likewise, if you come across a bug, please create an issue explaining the bug with as much detail as possible.

The PowerSchool API provides access to a lot of information and, unfortunately, we don't have time to research and implement every endpoint. Please feel free to open a pull request with any additional endpoints you create. We would love to have as many of the core endpoints covered as possible.

License

PyPowerSchool is released under an MIT license. See LICENSE for more information.

Metadata

Release files for pypowerschool 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypowerschool 0.2.0
File Size Uploaded Provenance Actions
pypowerschool-0.2.0.tar.gz 31.6 kB Without provenance Details for pypowerschool-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypowerschool 0.2.0
File Interpreter ABI Platform Actions
pypowerschool-0.2.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for pypowerschool-0.2.0-py2.py3-none-any.whl

Total release size: 40.8 kB

Release files / pypowerschool-0.2.0.tar.gz

Download URL pypowerschool-0.2.0.tar.gz
Size 31.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b6c87cf67fba58867ad35be596d01be8086b5b62cd316fec5ce826419cc025b7
BLAKE2b-256 checksum
How to use checksums
21b9ca2eee044ce7c4b14924dff76f41d115060949ebd6481a2bfb91d5726b76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Release files / pypowerschool-0.2.0-py2.py3-none-any.whl

Download URL pypowerschool-0.2.0-py2.py3-none-any.whl
Size 9.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
27cb0ce89a7e0beebb13469bd6114410f1c71c8f877af42bfcbc1531d8d0d075
BLAKE2b-256 checksum
How to use checksums
2e66f45562cd4932f62e228f4b1aa3ec41ce22f840a1e1a3db5565f3e9c28ecd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.0

Security for pypowerschool 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page