Skip to main content

DimiCheck terminal dashboard

Project description

DimiCheck TUI

DimiCheck TUI is a terminal dashboard for DimiCheck students. It uses the public OAuth PKCE flow and calls only the student app API surface for v1.

Install

Use pipx for the public install path:

pipx install dimicheck-tui
dimicheck-tui

The package also exposes dimicheck as a short alias. Prefer dimicheck-tui if another local deploy tool already uses the dimicheck command name.

For local development from this checkout:

cd packages/dimicheck-tui
uv run dimicheck-tui --help
uv run dimicheck-tui

Set DIMICHECK_BASE_URL when testing against a local or staging server:

cd packages/dimicheck-tui
DIMICHECK_BASE_URL=http://127.0.0.1:5000 uv run dimicheck-tui

Authentication

The TUI never asks for a password in the terminal. On first launch it opens the browser, signs in through DimiCheck OAuth, and stores tokens through the OS credential store.

  • macOS: Keychain
  • Windows: Credential Manager
  • Linux: Secret Service compatible keyring

If the OS keyring is unavailable, the app fails closed by default. For controlled environments you can explicitly allow a local token file:

dimicheck-tui --allow-plaintext-token

That fallback writes a 0600 permission file. Do not use it on shared machines.

Commands

dimicheck-tui                 # open the TUI dashboard
dimicheck-tui login           # browser OAuth login
dimicheck-tui logout          # revoke refresh token and delete local tokens
dimicheck-tui status get      # print current status
dimicheck-tui status set toilet
dimicheck-tui status set etc --reason "상담"
dimicheck-tui schoollife      # print today's timetable and meal

TUI shortcuts:

  • S: change status
  • R: refresh dashboard
  • L: logout
  • Q: quit

Status modal shortcuts:

  • 1-9: choose a status
  • Enter: apply
  • Esc: cancel
  • Tab / Shift+Tab: move focus between status choices, reason input, and buttons

v1 Scope

The public v1 supports:

  • current student status read/write
  • today's schoollife summary
  • latest class notices
  • today's class and official school events
  • OAuth PKCE login/logout

It intentionally does not expose routine editing, teacher/admin tools, browser session cookies, remember tokens, or /api/mcp/state.

Server Notes

The server seeds a dedicated public OAuth client:

  • client id: dimicheck-tui-public
  • redirect URI ports: 45831 through 45835
  • scopes: openid basic student_info status.read status.write

Server deployments should happen from the repository root. This package is intentionally separate so the public TUI release does not include Flask, database, or Google Sheets dependencies.

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

dimicheck_tui-0.1.5.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dimicheck_tui-0.1.5-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file dimicheck_tui-0.1.5.tar.gz.

File metadata

  • Download URL: dimicheck_tui-0.1.5.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for dimicheck_tui-0.1.5.tar.gz
Algorithm Hash digest
SHA256 55d91c6e713abbf802353f4fdbde5251893d23fe3ce955ea1dbd8446a1a8f0a8
MD5 91079b46cef80cd5f2487408d482820c
BLAKE2b-256 e44fcaa05b76bd4e25088036e9fb06264f3cbdd9a49b193eb86adb94f08d7efb

See more details on using hashes here.

File details

Details for the file dimicheck_tui-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: dimicheck_tui-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for dimicheck_tui-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e939c40990e6b28d6f79b08ba0f6a17635a4699f6db99ac086f3d63b38847ef2
MD5 161d294d948468dfe2944d52172b9caf
BLAKE2b-256 1bec3a7453458c4047c6a2b768047575632ede518d2960854e6d117a15eb9e35

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page