Skip to main content

A small package to help authenticate and use dulms api

Project description

DULMS SDK

this package is a simple non official SDK for DULMS

this package is still in development and the responses are pure from the server without any sanitization

installation

pip install delta-sdk

usage

importing

from delta_sdk import delta_auth

login

auth = delta_auth.Auth("https://dulms.deltauniv.edu.eg")
auth.login("USERNAME", "PASSWORD")

get user data

auth = delta_auth.Auth("https://dulms.deltauniv.edu.eg")
auth.login("USERNAME", "PASSWORD")

data = auth.get_user_data()
print(data)

get assginments

auth = delta_auth.Auth('https://dulms.deltauniv.edu.eg')
auth.login("USERNAME", "PASSWORD")

data = auth.get_assignments()
print(data)

get quizzes

auth = Auth('https://dulms.deltauniv.edu.eg')
auth.login("USERNAME", "PASSWORD")

data = auth.get_quizzes()
print(data)

using the coockies for other uses

auth = Auth('https://dulms.deltauniv.edu.eg')
auth.login("USERNAME", "PASSWORD")

cookies = auth.get_cookies()
print(coockies['Id'])

the coockies are stored in a dict with the following keys
 - Id
 - ASP.NET_SessionId

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

delta_sdk-0.0.14.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

delta_sdk-0.0.14-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page