An unofficial MyKU API wrapper and utilities for python.
This project was developed by a KU student and is not affiliated with the university. Please respect the API when using this project.
All documentation is available here.
You can also use help()
to see the docstrings of any modules in pymyku.
You can find some examples in the examples.
- Python 3.6+
python -m pip install pymyku
git clone https://github.com/lazykern/pymyku.git
cd pymyku
python -m pip install -r requirements.txt
python -m pip install -e .
You can use this library by importing the pymyku
module to your script.
Assume that USERNAME
is the username of your Nontri account and PASSWORD
is the password of your Nontri account.
import pymyku
ku_client = pymyku.Client('USERNAME', 'PASSWORD')
response = ku_client.fetch_gpax()
print(response)
from pymyku import requests, TokenAttr
from pymyku.utils import extract
login_res = requests.login('USERNAME', 'PASSWORD')
access_token = extract(login_res, TokenAttr.ACCESS_TOKEN)
response = requests.get_gpax(access_token).json()
print(response)
{
'code': 'success',
'results': [
{
'std_id': '######',
'std_code': '##########',
'gpax': #.##,
'total_credit': ##
}
]
}
The only goal of this project is to make it simpler to send API requests to MyKU. There's no need to be concerned about the user's personal data being saved or shared.
- MyKU
- requests
- discord.py for documentaion style and template.