Giter Site home page Giter Site logo

aldan / nuregi Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 56 KB

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

Home Page: https://pypi.org/project/nuregi/

License: GNU General Public License v3.0

Python 100.00%
python3 api-client tabula-py

nuregi's Introduction

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/.

nuregi's People

Contributors

aldan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.