Skip to content

Python module for logged in user sessions at University of Copenhagen's studentnet

Notifications You must be signed in to change notification settings

kalkun/KUPython

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 

Repository files navigation

#########################################################################

KUPython

######################################################################### KUPython is a small Python module intended to help easily build scripts or small applications for KU's studentnet Absalon.

In order for KUPython to work the Requests Library need to be installed.

#########################################################################

  • Get started:

    • Start a new session with the absalonSession class. Example:

        from KUPython import absalonSession
        from assignments import assignments
        
        user = <username>
        passw = <password>
        
        kusession = absalonSession(user, passw)
      
  • Test status for assignments.

    • Example to test for assignments from all courses

          def getstatus():
              newsession = assignments(user, passw)
          
              status = "" 
              for folder in newsession.assignmentfolders:
                  status += newsession.checkassignments(folder)
              return status
      
      • Since the result from getstatus will be html formatted it can just be dumped to a file.

          def dump(html):
              dump = open('result.html', 'w')
              dump.write(html)
              dump.close()
        

About

Python module for logged in user sessions at University of Copenhagen's studentnet

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages