10 releases

0.2.7 Mar 23, 2025
0.2.6 Mar 19, 2025
0.2.3 Feb 18, 2025
0.1.5 Feb 12, 2025

#128 in Science

Download history 309/week @ 2025-02-08 194/week @ 2025-02-15 47/week @ 2025-02-22 12/week @ 2025-03-01 225/week @ 2025-03-08 356/week @ 2025-03-15 167/week @ 2025-03-22

762 downloads per month
Used in rsfilc

MIT license

46KB
942 lines

ekreta-rs: E-Kréta api client in Rust

Magyar README

WIP: do expect breaking changes

E-Kréta is an awful Hungarian electronic school administration system

API

  • serde struct bindings for following:

  • school fetching

  • token

  • user info fetch

  • evaluations/grades

  • timetable

  • messages

    • attachments
  • announced test

  • absences

  • classes/groups the user is a part of

Disclaimer

logging is enabled using the log crate, mostly for requests in user.rs, those requests/responses contain sensitive data, such as log::debug!("{token_json}");. It should be fine as long as you either:

  • don't use a crate that logs: eg.: env_logger, log4rs, fern
  • don't enable log::LevelFilter::Debug or higher
  • don't store/share your/other's personal information without consent

Secret weapon

if you'd like to introduce a bug (in some cases, feature in others: see rsfilc, when one would like to explicitly use the cache), which would make this crate unable to access the internet, export an env variable like following: one-time thing: NO_NET=1 <BINARY, eg.: rsfilc>

Dependents

This library is written to provide bindings between Rust and the E-Kréta REST API. It's primarily (and only at this time) used in RsFilc.

Acknowledgements

The API was written based on these documentations

Dependencies

~7–15MB
~164K SLoC