PowerSchool API Python Package
This Python package provides an easy-to-use interface for interacting with the PowerSchool API, allowing users to perform various operations such as retrieving student counts, student details, course counts, and more from a PowerSchool server.
Features
- Get student count for a specified school.
- Retrieve detailed student information.
Installation
To install the PowerSchool API package, use pip:
pip install powerschoolapi-cars1n
Usage
Here's a quick start on how to use the PowerSchool API package:
from powerschoolapi_cars1n import PS
# Initialize the PowerSchool API client
ps = PS()
# Get the count of students in a school
student_count = ps.get_student_count("school_dcid")
print("Student Count:", student_count)
# Get detailed information about a student
student_info = ps.get_student("student_dcid")
print("Student Information:", student_info)
Configuration
Before using the PowerSchool API, ensure that you have set up the necessary environment variables. Your .env file should look something like this.
CLIENT_ID =
CLIENT_SECRET =
POWERSCHOOL_SERVER_URL = "https://powerschool.example.com:443"
Contributing
Contributions to the PowerSchool API package are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature.
- Add your changes.
- Submit a pull request.
License
This project is licensed under the MIT License.
Contact
For any queries or issues, please open an issue on the GitHub repository or contact me via email at 14williamsc@gmail.com
Semi-working features
If you have a powerschool plugin then the normal queries_root folder that is required can be taken into account when making calls to those user created endpoints.
Here is how you would set it up.
from AccessToken import AccessToken
import os
# Create an AccessToken instance and get the access token
token_instance = AccessToken()
access_token = token_instance.get_access_token()
queries_root_path = os.path.join(os.getcwd(), "queries_root")
data_access = DataAccess(access_token, school_dcid="1234", base_url=base_url, queries_root_path=queries_root_path, xml_file_name="the file name that is in your queries root folder")
# User created path com.organization.attendance_manager.attendance.get_schwifty
response = data_access.fetch_data("attendance.get_schwifty", params={
"date": "01/01/1999",
"schoolid": "1234",
}, method="POST")
ic(response)
Metadata
Release files for powerschoolapi-cars1n 1.0.5
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 |
|---|---|---|---|---|
| powerschoolapi_cars1n-1.0.5.tar.gz | 5.9 kB | Without provenance | Details for powerschoolapi_cars1n-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| powerschoolapi_cars1n-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for powerschoolapi_cars1n-1.0.5-py3-none-any.whl |
Total release size: 14.0 kB
Release files / powerschoolapi_cars1n-1.0.5.tar.gz
| Download URL | powerschoolapi_cars1n-1.0.5.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9880aec622059e5d31f3b6f49dd021024841baf16fb1b992ea69d40005255add
|
|
BLAKE2b-256 checksum How to use checksums |
8f193aed8ff6ef17b7c86186565ac31fd94ad16f7cbb79bc281a28b0b34d600d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / powerschoolapi_cars1n-1.0.5-py3-none-any.whl
| Download URL | powerschoolapi_cars1n-1.0.5-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9aaabfd8e4b776fd2ad491149c3f13baffa07b5d564cf648f0bc48226046816b
|
|
BLAKE2b-256 checksum How to use checksums |
3c5a6d9a7f17b2f8d2f616c162e93548d9040638a3bd1209d9ff0a35ca56d717
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for powerschoolapi-cars1n 1.0.5
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.