def __init__(self, username, password, url):
        """
        Schedule fetches the users schedule from a Powerschool server regardless if the web portal is active as it uses
        the PowerAPI.

        :param username: Username used to login to PowerSchool
        :type username: str
        :param password: Password for User
        :type password: str
        :param url: The Web URL used to access the student portal of Powerschool
        :type url: str
        :return: None
        """
        self.username = username
        self.password = password

        self.user = None
        self.ps = powerapi.core(url)
    def __init__(self, username, password, url):
        """
        Schedule fetches the users schedule from a Powerschool server regardless if the web portal is active as it uses
        the PowerAPI.

        :param username: Username used to login to PowerSchool
        :type username: str
        :param password: Password for User
        :type password: str
        :param url: The Web URL used to access the student portal of Powerschool
        :type url: str
        :return: None
        """
        self.username = username
        self.password = password

        self.user = None
        self.ps = powerapi.core(url)
Example #3
0
from pprint import pprint #DEBUG
import sys #DEBUG

import powerapi

ps = powerapi.core('https://psserv')

try:
	user = ps.auth('username', 'password')
except Exception as err:
	print "Whoops! Something went wrong with PowerAPI:", err
	sys.exit()

courses = user.getCourses()
pprint(courses[2].getName())
pprint(courses[2].getScores())
Example #4
0
__author__ = 'tim'

import powerapi
from getpass import getpass
import sys

ps = powerapi.core('https://stafford.powerschool.com')

#Print basic header information
print('pyPowerSchool')
print('A POWERSCHOOL COMMAND LINE APP WRITTEN IN PYTHON')
print('BY: TIMOTHY NOTO (n3tn0)')
print('VERSION: ALPHA')
print('\n\n')

#Get the user's PowerSchool information and authenticate it
username = raw_input('PowerSchool Username: '******'Password: '******'\nWelcome to ' + user.getUserName() + '!')

#Print the main menu and prompt the user for their selection
print('Main Menu:\n')
print('[1] Scores')
print('[2] GPA')
print('[3] Averages & Analysis')
print('[4] Attendance')
Example #5
0
from pprint import pprint  #DEBUG
import sys  #DEBUG

import powerapi

ps = powerapi.core('https://psserv')

try:
    user = ps.auth('username', 'password')
except Exception as err:
    print "Whoops! Something went wrong with PowerAPI:", err
    sys.exit()

courses = user.getCourses()
pprint(courses[2].getName())
pprint(courses[2].getScores())
Example #6
0
__author__ = 'tim'

import powerapi
from getpass import getpass
import sys

ps = powerapi.core('https://stafford.powerschool.com')

#Print basic header information
print('pyPowerSchool')
print('A POWERSCHOOL COMMAND LINE APP WRITTEN IN PYTHON')
print('BY: TIMOTHY NOTO (n3tn0)')
print('VERSION: ALPHA')
print('\n\n')

#Get the user's PowerSchool information and authenticate it
username = raw_input('PowerSchool Username: '******'Password: '******'\nWelcome to ' + user.getUserName() + '!')

#Print the main menu and prompt the user for their selection
print('Main Menu:\n')
print('[1] Scores')
print('[2] GPA')
print('[3] Averages & Analysis')
print('[4] Attendance')