Async HSE RUZ API client for Python3
Project description
aioruz
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 ebale 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.
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
aioruz-0.6.0.tar.gz
(3.9 kB
view details)
File details
Details for the file aioruz-0.6.0.tar.gz.
File metadata
- Download URL: aioruz-0.6.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac0458b011d844292d6637340ce5bd1bd879daf6b376eee2414b4a7beaba203f
|
|
| MD5 |
bfafa3eb0ed543a718c62e6bc78cb9b3
|
|
| BLAKE2b-256 |
5d0778da6620d7ce15d09202fe74efaa23eba90700b4dad6f2f6153c42267a28
|