PyMyKU
An unofficial MyKU API wrapper and utilities for python.
Table of Contents
Notices
This project was developed by KU students and is not affiliated with the university. Please respect the API when using this project.
Documentation
All documentation is available here.
You can also use help() to see the docstrings of any modules in pymyku.
Examples
You can find some examples in the examples.
Installation
Prerequisites
- Python 3.6+
From PyPI
python -m pip install pymyku
From source
git clone https://github.com/phusitsom/pymyku.git
cd pymyku
python -m pip install -r requirements.txt
python -m pip install -e .
Usage
You can use this library by importing the pymyku module to your script.
Methods
Assume that USERNAME is the username of your Nontri account and PASSWORD is the password of your Nontri account.
Client
import pymyku
ku_client = pymyku.Client('USERNAME', 'PASSWORD')
response = ku_client.fetch_gpax()
print(response)
Requests
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)
Output
{
'code': 'success',
'results': [
{
'std_id': '######',
'std_code': '##########',
'gpax': #.##,
'total_credit': ##
}
]
}
Notes
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.
References
- MyKU
- requests
- discord.py for documentaion style and template.
Metadata
Release files for pymyku 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pymyku-0.3.0.tar.gz | 16.0 kB | Without provenance | Details for pymyku-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pymyku-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pymyku-0.3.0-py3-none-any.whl |
Total release size: 32.9 kB
Release files / pymyku-0.3.0.tar.gz
| Download URL | pymyku-0.3.0.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c8789aad8ea2839d6580551809749c9efe4212df1c9c6869e129f9b3cd52dc5
|
|
BLAKE2b-256 checksum How to use checksums |
35b496831cff6d559197e05a3b15df06dbb6b91c119f3da169a540073c418289
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Release files / pymyku-0.3.0-py3-none-any.whl
| Download URL | pymyku-0.3.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
48638ebd113e15cd36b8d49f99c90dc949cbb4eb4a7db68fbee43f88a0bf5b39
|
|
BLAKE2b-256 checksum How to use checksums |
1bc109db7f521d6586e8015916e3d3df092f2fd005e04ddc1e5e4032ff78ce7f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for pymyku 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.