Skip to main content

Async HSE RUZ API client for Python3

Project description

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


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)

Uploaded Source

Built Distribution

aioruz-0.8.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

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

Hashes for aioruz-0.8.0.tar.gz
Algorithm Hash digest
SHA256 5c1c9aa7fdd5476cb3663e4aece93d3857618675c0069acaaa86fab2c3907695
MD5 0e3dc7fd6c004e16e3567de30d40dc61
BLAKE2b-256 3a67763d4d64d8a5edc0ce561e746261fceddce1ba438536b3df6f7a1d82fc5f

See more details on using hashes here.

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

Hashes for aioruz-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 167d1b6582bb9277c905427726a9e491fbc6a9d9e2e4048fc50c932d02d405f4
MD5 6d8e9516516db3d5e7af747b74af7d3a
BLAKE2b-256 bc151debfa05d6ce5f82418f25d1bda322b9c0080e605c17c69fe4062e23983c

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page