A basic Python-based API client library for registrar.nu.edu.kz
Project description
Nuregi
A basic Python-based API client library for registrar.nu.edu.kz
Requirements
- Python 3.8+
OPTIONAL
Java 8+ is required to usescraper.pdf
package
Installation
Install with pip
:
pip install nuregi
Usage
Refer to function docstrings for complete set of arguments
nuregi.api
from nuregi import api
"""
All get_object type functions have object_id and timeout arguments
"""
# Sample for semesters
fall2022_semester = api.get_semester(object_id=642, timeout=10)
all_semesters = api.get_semester(timeout=10)
# Other objects
schools = api.get_school()
academic_levels = api.get_academic_level()
departments = api.get_department()
subjects = api.get_subject()
instructors = api.get_instructor()
breadth = api.get_breadth() # likely deprecated
course_list = api.get_course_list(
limit=10,
offset=1,
semester_id=642,
school_id=13,
department_id=None,
level_id=1,
subject_id=None,
instructor_id=None,
breadth_id=None,
timeout=10,
)
nuregi.scraper.pdf
from nuregi.scraper.pdf import *
fall2022_ug_seds_schedule = get_schedule(
data_format="columns",
semester=642,
academic_level=1,
school=13,
timeout=15,
)
fall2022_ug_seds_course_requirements = get_requirements(
data_format="table",
semester=642,
academic_level=1,
school=13,
timeout=15,
)
spring2022_seds_finals = get_final_schedule(
data_format="columns",
semester=642,
school=13,
timeout=15
)
Dependencies
Notice
This project is for educational purposes only and should not be used to interfere with operation of https://registrar.nu.edu.kz/.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nuregi-0.2.0.dev2.tar.gz
(19.4 kB
view hashes)
Built Distribution
Close
Hashes for nuregi-0.2.0.dev2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 80e0318cb40d2a130873fbb47ba7f89deda612361b2ba0c5774001c1cf4278ef |
|
MD5 | 5f3c23b58c94687fa80e6516e4a1303d |
|
BLAKE2b-256 | d1901e458cc6d7ec924fe9ac9e44a6a2a012a019b2720e048190d5179eefc4fa |