Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

mitinarseny/aioruz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aioruz

PyPI version shields.io

Async HSE RUZ API client for Python 3.

Usage

To obtain student's schedule:

from datetime import date, timedelta

import asyncio
import aioruz


async def main():
    # Get schedule on 10 days forward
    print(await aioruz.student_schedule(email='example1@edu.hse.ru', to_date=10))  

    # Suitable for lecturers as there is no way to get lecturer's person_id by email
    print(await aioruz.schedule(person_type='lecturer',
                                person_id=12345,
                                from_date=date.today(),
                                to_date=date.today() + timedelta(days=7))

    # Get student's info by email
    print(await aioruz.student_info('example@edu.hse.ru'))

    # Search for query
    print(await aioruz.search('some name'))

loop = asyncio.get_event_loop()
loop.run_until_completed(main())

Installiation

Install via Pip:

pip install aioruz

Security

By default SSL certificate validation is off. To enable it, set aioruz.VERIFY_SSL to True.

import aioruz

aioruz.VERIFY_SSL = True

Or you can set RUZ_VERIFY_SSL environment virable to True.

Feedback

Please, send your bug reports to this Telegram chat.

About

Async HSE RUZ API client for Python3

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages