Skip to main content

Async API for Bakalari endpoint v3

Project description

codecov

Changelog

All notable changes to this project will be documented in this file.

🇨🇿 Full documentation (czech) on this site

[0.3]

Added

  • bakalari_demo.py is now CLI application
  • Komens now support for downloading attachment - get_attachment
  • send_auth_request now supports extending EndPoints url wiht extend argument
  • school_list now supports variable town - fetch schools in the town to limit downloading full list of schools.
  • Messages class now have function json to return messages as JSON representative
  • Messages class have __str__ function for better handling str(Messages)

Changed

  • refactor of the code for speed and better reading of the code
  • school_list now fetching schools in concurency mode - improved speed form about 1:30 min to 20s
  • mid variable in the MessageContainter is now string instead of integer.
  • async_school_list renamed to school_list as all methods are async
  • MessageContainter returns JSON bytes on as_json() call instead of orjson.Fragment
  • get_messsages() renamed to fetch_messages()

Removed

  • username from Credentials - as we do not need to store it

[0.2]

Added

  • better exceptions handling and logging
  • class Komens
    • count unread messages
    • get all messages
    • tests and coverage

Changed

  • async_schools_list moved to Bakalari class
  • Refactor login functions
  • Refactor token handling

Fixed

  • Invalid refresh token
  • Refactor send_request to better maintenance

0.0.1

Added

  • main class Bakalari

    • supports saving access token and refresh token localy
    • automatically refreshes access token with refresh token if refresh token is not expired
  • class Schools in datastructures.py lists all schools with their API points

    • get_url by school name or index in list
    • search school by town
    • cache list of schools by saving and loading list in JSON format

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

async_bakalari_api-0.3.tar.gz (29.9 kB view hashes)

Uploaded Source

Built Distribution

async_bakalari_api-0.3-py3-none-any.whl (24.1 kB view hashes)

Uploaded Python 3

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