Skip to main content

Nuregi

Downloads PyPI Libraries.io dependency status for latest release PyPI - Python Version GitHub

A basic Python-based API client library for registrar.nu.edu.kz

Requirements

  • Python 3.11+
  • Java 8+ is required to use tabula-py

Installation

Install with pip:

pip install nuregi

Usage

API

import nuregi

"""
All get_object type functions have object_id and timeout arguments
"""

# Sample for semesters
fall2022_semester = nuregi.get_semester(object_id=642, timeout=10)
all_semesters = nuregi.get_semester(timeout=10)

# Other objects
schools = nuregi.get_school()
academic_levels = nuregi.get_academic_level()
departments = nuregi.get_department()
subjects = nuregi.get_subject()
instructors = nuregi.get_instructor()
breadth = nuregi.get_breadth()  # likely deprecated

course_list = nuregi.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,
)

Scraper

import nuregi

scraper = nuregi.Scraper(timeout=10, ignore_ssl=True)

current_semester = scraper.get_last_published_semester()

fall2022_ug_seds_course_schedule = scraper.get_course_schedule(
    semester=642,
    academic_level=1,
    school=13,
)

fall2022_ug_seds_course_requirements = scraper.get_course_requirements(
    semester=642,
    academic_level=1,
    school=13,
)

spring2022_seds_finals = scraper.get_finals_schedule(
    semester=642,
    school=13,
)

Notice

This project is for educational purposes only and should not be used to interfere with operation of https://registrar.nu.edu.kz/.

Metadata

Release files for nuregi 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 nuregi 0.3.0
File Size Uploaded
nuregi-0.3.0.tar.gz 17.4 kB Details

Built distribution (wheel)

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

Total release size: 35.7 kB

Release files / nuregi-0.3.0.tar.gz

Download URL nuregi-0.3.0.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
67426b03f3191df4c2dfe1e4cb046bc75f2da261bcdc1ea416840175008899e3
BLAKE2b-256 checksum
How to use checksums
58a7179996fd0bff97364b72f09f6f81857318bffb82af605070594c7ee6f7c0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Windows/10

Release files / nuregi-0.3.0-py3-none-any.whl

Download URL nuregi-0.3.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
88a2e7da7a5a16f4644ed5aa56fdc4ed4f04d542c30adb9ab72a979635b580f6
BLAKE2b-256 checksum
How to use checksums
7569507d16c573d23d459394b4328f9ba50fbabfa56e1070ee574f10ea4a2db7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.4 Windows/10
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