Async API for Bakalari endpoint v3
Project description
Changelog
All notable changes to this project will be documented in this file.
🇨🇿 Full documentation (czech) on this site
0.3.1
Added
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
Changed
dependency list is divided to application dependencies and development dependencies
0.3
Added
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)
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 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()
Removed
username
fromCredentials
- 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 toBakalari
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
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
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.2.tar.gz
(33.1 kB
view details)
Built Distribution
File details
Details for the file async_bakalari_api-0.3.2.tar.gz
.
File metadata
- Download URL: async_bakalari_api-0.3.2.tar.gz
- Upload date:
- Size: 33.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eaf92dc59aa0f097e5bcabc6642bfbe0e1f4fc07141b9bddf965747c51df430 |
|
MD5 | f659d83910ece641439de4f15f3c6d96 |
|
BLAKE2b-256 | 588a2e42f19658c9c379bbe9f468004321287078e524b1a7db8ebbaf1c21be10 |
File details
Details for the file async_bakalari_api-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: async_bakalari_api-0.3.2-py3-none-any.whl
- Upload date:
- Size: 25.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e42ab4e0a2cd1e547696a7c5b4e21b17af7bc5ffeedeea1244783ceaabd6f6b8 |
|
MD5 | 300c041db6b631ed2bb62571595ac642 |
|
BLAKE2b-256 | 9543fc011ce5d5ea3a806c7fd823c11fb06ed36d6f940c4406174d23a3f7dbc2 |