#hungarian #system #tui #client #rename #kreta

app rsfilc

An E-Kréta console client: cli and todo!("TUI"), written entirely in Rust from the ground up

28 releases

new 0.11.8 Apr 10, 2025
0.10.1 Apr 7, 2025
0.9.44 Mar 17, 2025
0.8.14 Jun 12, 2024

#5 in Science

Download history 4/week @ 2024-12-22 19/week @ 2024-12-29 22/week @ 2025-01-05 9/week @ 2025-01-12 61/week @ 2025-01-26 63/week @ 2025-02-02 65/week @ 2025-02-09 68/week @ 2025-02-16 121/week @ 2025-02-23 26/week @ 2025-03-02 61/week @ 2025-03-09 184/week @ 2025-03-16 19/week @ 2025-03-23 6/week @ 2025-03-30 564/week @ 2025-04-06

834 downloads per month

MIT license

1.5MB
2.5K SLoC

RozsdásFilc: E-Kréta console client in Rust

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

Magyar leírás

dependency status

Installation

  • EZ mode: grab a prebuilt binary from releases

if not available for your platform (file an issue), not a preferred method or feels a bit outdated:

  • Rust
  • cargo install --locked rsfilc

for latest, beta builds: cargo install --locked --git "https://codeberg.org/jark/rsfilc"

Shell completions:

Bash

Add this to the end of your config file (usually ~/.bashrc):

eval "$(rsfilc completions bash)"
Zsh

Add this to the end of your config file (usually ~/.zshrc):

eval "$(rsfilc completions zsh)"

For completions to work, the above line must be added after compcompletions is called. You may have to rebuild your completions cache by running rm ~/.zcompdump*; compcompletions.

Fish

Add this to the end of your config file (usually ~/.config/fish/config.fish):

rsfilc completions fish | source
PowerShell

Add this to the end of your config file (find it by running echo $profile in PowerShell):

Invoke-Expression (& { (rsfilc completions powershell | Out-String) })
Elvish

Add this to the end of your config file (usually ~/.elvish/rc.elv):

eval (rsfilc completions elvish | slurp)

Note RsFilc only supports elvish v0.18.0 and above.

Usage

general help: rsfilc --help
creating a new user: rsfilc user --create <USER_ID>

useful stuff

  • when in doubt, be sure to check rsfilc --help first
  • if you'd like to have instant replies, only loading cached data, not caring about latest changes on the server, you shall try setting the environment variable NO_NET to 1, eg. on linux: NO_NET=1 rsfilc timetable
  • if you feel like refreshing your cache, you'd do (again on linux): NO_CACHE=1 rsfilc absences, but don't forget rsfilc user --cache-dir either
  • if your lessons are over for a day, and say: rsfilc (timetable|tt), the next day with lessons will be shown by default, to show today you could: rsfilc tt +0 or rsfilc tt -- -0

demo

Features

renaming

like: teachers, subjects, ...
check out the config path with rsfilc --config-path and edit rename to your liking
you may wanna check out example config if you don't feel like renaming at all at a specific moment, use NO_RENAME=1 (note: this won't apply to already cached data)

cross-platform: not tested thoroughly but should run on

  • linux
  • windows
  • macOS
  • android via Termux
  • everything else that Rust supports

CLI

  • basic usage of API
  • filtering what to show
  • multi-user feature
  • somehow rendering html that messages return
  • render html messages with w3m or lynx if possible
  • shell completions: [bash, zsh, fish, elvish, powershell]
  • logger: fern maybe
  • helpful crashes
  • caching everything so that life remains enjoyable
    • token
    • timetable
    • evals
    • user info
    • absences
    • announced tests
    • messages
    • note messages
  • encoding passwords
  • sending messages
  • class averages
  • fetching administrational processes
  • starting new administrational processes

TUI

  • multiple pages

    • evaluations
    • timetable
    • ...
  • beautifully displaying data

    • timetable in nice table
    • plotting evaluations
    • ...

Acknowledgements

  • dependencies used (although many of them wouldn't be necessary with a proper API, this is not the case with e-kréta.)
  • See ekreta-rs, which provides the API client for E-Kréta
  • Shell completions section got from zoxide

Dependencies

~5–17MB
~160K SLoC