Skip to content
This repository has been archived by the owner on Nov 25, 2021. It is now read-only.

ovkulkarni/sis-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sis-api

A JSON API for FCPS StudentVUE

Installation instructions

git clone https://github.com/ovkulkarni/sis-api.git

Create sis_api/secret.py similar to the example below:

from base.crypto import AESCipher
SIS_ENDPOINT = "https://sisstudent.fcps.edu/SVUE/Service/PXPCommunication.asmx"
SECRET_KEY = "secret"
DEBUG = True
CIPHER = AESCipher(SECRET_KEY)
FCM_SERVER_KEY = ""

Run the following commands

mkvirtualenv sis-api -p python3
pip install -r requirements.txt
./manage.py migrate
./manage.py createcachetable

IN PRODUCTION ONLY

Create a crontab entry similar to the one below (make sure the interval is less than 30 minutes)

*/20 * * * * python manage.py check_for_updates

Misc. Info

  • This application uses fcm_django to send notifications
  • Passing ?save_password in the GET querystring or the POST data will encrypt and save the user's password to the database so that notifications can be sent.
  • Passing ?force in the GET querystring will bypass the server cache and request the data from SIS
  • The application utilizes HTTP Basic Auth for authentication

About

A JSON API for FCPS StudentVUE

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published