Skip to content

v0.2.0

Choose a tag to compare

@Andrew4Coding Andrew4Coding released this 02 Sep 08:17
· 38 commits to main since this release
26b33e1

Highlights

scele now talks to SCELE through the official Moodle mobile web-service API instead of scraping HTML — stable JSON, no more breakage when SCELE's theme changes.

Breaking

  • scele login mints a web-service token from /login/token.php and stores only the token (~/.config/scele/token.json) — the cookie store is gone. Run scele login again after upgrading.
  • whoami reports {user, userid, username, token} instead of {sesskey}.
  • forums / assignments / resources return richer objects; forum accepts a cmid or a forum instance id.
  • Requires an account that authenticates with a password (manual / LDAP). Accounts behind an external SSO login page cannot mint a token.
  • beautifulsoup4 / lxml dependencies dropped.

New commands

course-detail, people, grades, course-updates, deadlines, calendar, notifications, assignment-detail, submit (online text / file), quizzes, quiz, quiz-review, and guarded attempt-taking: quiz-start, quiz-attempt, quiz-answer.

TUI

scele tui gains screens for deadlines, calendar, notifications, grades, people, course info, assignment instructions + submit, and the full quiz flow.

Packaging

The prebuilt bundle is now onedir (a .tar.gz), not a single onefile binary — startup dropped from ~4 s to ~0.1 s per call. install-bin.sh unpacks it to ~/.local/lib/scele-app and links scele onto your PATH.

Install

macOS (Apple Silicon) — prebuilt bundle (CI was unavailable at release time, so only this target is attached):

curl -fsSL https://raw.githubusercontent.com/Andrew4Coding/scele-cli/main/install-bin.sh | sh

Everything else — pipx (any OS, Python 3.10+):

pipx install git+https://github.com/Andrew4Coding/scele-cli.git@v0.2.0

or the attached wheel:

pipx install ./scele_cli-0.2.0-py3-none-any.whl