All notable changes to this project will be documented in this file.
🇨🇿 Full documentation (czech) on this site
- class
Schools()
is accessible byBakalari
class inself.schools
Schools
now support operations with towns- new data structure
UniqueTowns
that hold all town namesget_town_partial_name
returns list of the towns based on partial nameget_all_towns
returns list of all townsistown
checks if the town is present in the listcount_towns
returns number of towns in list
- automatically load credentials if auto_cache is on
- recursive search in towns when fetching
schools_list
from server. Recursive search is enabled by default. You can turn it off byschool_list(... , recursive=False)
Schools
now support operations with towns- new data structure
UniqueTowns
that hold all town namesget_town_partial_name
returns list of the towns based on partial nameget_all_towns
returns list of all townsistown
checks if the town is present in the listcount_towns
returns number of towns in list
- dependency list is divided to application dependencies and development dependencies
- if
auto_cache_credentials
andcache_filename
is set then credentials are loaded automatically
bakalari_demo.py
is now CLI applicationKomens
now support for downloading attachment -get_attachment
send_auth_request
now supports extending EndPoints url wihtextend
argumentschool_list
now supports variabletown
- fetch schools in the town to limit downloading full list of schools.Messages
class now have functionjson
to return messages as JSON representativeMessages
class have__str__
function for better handlingstr(Messages)
- 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 20smid
variable in theMessageContainter
is now string instead of integer.async_school_list
renamed toschool_list
as all methods are asyncMessageContainter
returns JSON bytes onas_json()
call instead oforjson.Fragment
get_messsages()
renamed tofetch_messages()
username
fromCredentials
- as we do not need to store it
- better exceptions handling and logging
class Komens
- count unread messages
- get all messages
- tests and coverage
async_schools_list
moved toBakalari
class- Refactor login functions
- Refactor token handling
- Invalid refresh token
- Refactor send_request to better maintenance
-
main
class Bakalari
- supports saving
access token
andrefresh token
localy - automatically refreshes access token with refresh token if refresh token is not expired
- supports saving
-
class Schools
indatastructures.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