Skip to main content
pymyku

PyMyKU

Language: Python Request

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

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

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)

Source distribution for pymyku 0.3.0
File Size Uploaded
pymyku-0.3.0.tar.gz 16.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pymyku 0.3.0
File Interpreter ABI Platform
pymyku-0.3.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page