A small package to interact with powerschool's api
Project description
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)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file powerschoolapi_cars1n-1.0.5.tar.gz.
File metadata
- Download URL: powerschoolapi_cars1n-1.0.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9880aec622059e5d31f3b6f49dd021024841baf16fb1b992ea69d40005255add
|
|
| MD5 |
ebd2181d96ab9275992f0638a8965413
|
|
| BLAKE2b-256 |
8f193aed8ff6ef17b7c86186565ac31fd94ad16f7cbb79bc281a28b0b34d600d
|
File details
Details for the file powerschoolapi_cars1n-1.0.5-py3-none-any.whl.
File metadata
- Download URL: powerschoolapi_cars1n-1.0.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9aaabfd8e4b776fd2ad491149c3f13baffa07b5d564cf648f0bc48226046816b
|
|
| MD5 |
4e6763deea8e6577605682a3b393f5d7
|
|
| BLAKE2b-256 |
3c5a6d9a7f17b2f8d2f616c162e93548d9040638a3bd1209d9ff0a35ca56d717
|