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.8.0.tar.gz
(4.0 kB
view details)
Built Distribution
File details
Details for the file aioruz-0.8.0.tar.gz
.
File metadata
- Download URL: aioruz-0.8.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c1c9aa7fdd5476cb3663e4aece93d3857618675c0069acaaa86fab2c3907695 |
|
MD5 | 0e3dc7fd6c004e16e3567de30d40dc61 |
|
BLAKE2b-256 | 3a67763d4d64d8a5edc0ce561e746261fceddce1ba438536b3df6f7a1d82fc5f |
File details
Details for the file aioruz-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: aioruz-0.8.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 167d1b6582bb9277c905427726a9e491fbc6a9d9e2e4048fc50c932d02d405f4 |
|
MD5 | 6d8e9516516db3d5e7af747b74af7d3a |
|
BLAKE2b-256 | bc151debfa05d6ce5f82418f25d1bda322b9c0080e605c17c69fe4062e23983c |