電通大のCLIツールです

Overview

uecli

電通大のCLIツールです。コマンドラインからシラバス検索、成績参照、図書館の貸出リストなどを見ることができます

インストール

pip install uecli

使い方

  • シラバスを検索
uecli syllabus search -s 'コンピュータサイエンス'
  • シラバスを取得し、Markdown形式で表示
uecli --markdown syllabus get --year 2021 -t 31 -c 21324235
  • 2021年度前期の成績を取得
uecli grades --year 2021 --semester 1 get
  • 図書館で借りている本を表示
uecli library status

認証

認証には以下の方法があります

  • ターミナルでユーザ名・パスワード、二段階認証コードを入力
  • 環境変数に設定

認証情報の保存に以下のファイルが作成されます

  • ~/.uecli.cookies.lwp
  • ~/.uecli.campussquare.json

環境変数に設定する場合

UEC_USERNAME UECアカウントのユーザー名(shibboleth)
UEC_PASSWORD UECアカウントのパスワード
UEC_MFA_SECRET 二段階認証の秘密鍵*

二段階認証の秘密鍵の取得方法

以下の方法では二段階認証コードが変わるため、認証アプリ等で再設定が必要になります

  1. 二段階認証設定ページへログイン

  2. 2段階認証設定状況:の「2段階認証設定」ボタンを押す

  3. トークンアプリを使用するにチェックを入れます

  4. 次のようなURIがあるのでsecret=の後の部分をコピーします

    otpauth://totp/axiole:z2510999?secret=ABCDEFGHIJKLMNOPQRSTUVWXYZ&issuer=axiole
    

    上記のURIの場合ABCDEFGHIJKLMNOPQRSTUVWXYZです

  5. QRコードを読み取りスマホなどの認証アプリへも登録します

  6. 次へを押し、画面に従い設定を完了します

  7. 環境変数を設定します

    • Linux, macOS

      # ~/.bashrc
      # UECアカウント
      export UEC_USERNAME="z2510999"
      export UEC_PASSWORD="hogehogehoge"
      # 二段階認証の秘密鍵
      export UEC_MFA_SECRET="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    • WindowsはGUIから行います

  8. 環境変数の値を書いたファイルは他人が読めないようにしてください

    • Linux, macOS

      # bashの場合(※solはデフォルトでtcshです)
      chmod 600 ~/.bashrc
  9. 必要に応じ環境変数を再読込してください

    • Linux, macOS

      . ~/.bashrc
Owner
UEC World Dominators
UEC World Dominators
A Terminal UI for Discord

ToastCord ToastCord is a Discord Terminal UI. At the moment you can only look at Direct messages. TODO: - Add support for guilds - Message sending sup

toast 82 Dec 18, 2022
Use case: quick JSON processing/restructuring with jq without terminal

alfred-jq Alfred workflow to conveniently process JQ on clipboard based on a jq query Also available at: packal/jq Use case: quick JSON processing/res

T on Meta Mode 5 Sep 30, 2022
Because sometimes you need to do it live

doitlive doitlive is a tool for live presentations in the terminal. It reads a file of shell commands and replays the commands in a fake terminal sess

Steven Loria 3.2k Jan 09, 2023
Command line parser for common log format (Nginx default).

Command line parser for common log format (Nginx default).

Lucian Marin 138 Dec 19, 2022
A webmining CLI tool & library for python.

minet is a webmining command line tool & library for python (= 3.6) that can be used to collect and extract data from a large variety of web sources

médialab Sciences Po 165 Dec 17, 2022
organize your books on the command line

organize your books on the command line

Ben Winston 19 Jan 21, 2022
Simple CLI interface for linear task manager

Linear CLI (Unmaintained) Simple CLI interface for linear task manager Usage Install: pip install linearcli Setup: Generate a pe

Mike Lyons 1 Jan 07, 2022
A simple command line tool for changing the icons of folders or files on MacOS.

Mac OS File Icon Changer Description A small and simple script to quickly change large amounts or a few files and folders icons to easily customize th

Eroxl 3 Jan 02, 2023
CLI/library to control FNIRSI DC Power Supply (DC-6006L, etc)

dc6006l - CLI/library to control FNIRSI DC Power Supply (DC-6006L, etc) What is this? FNIRSI DC6006L is a programmable DC power supply that is quite c

Taisuke Yamada 7 Sep 25, 2022
A selfbot made with DPY, doesn't have much commands but there's some useful commands to use.

Phantom Selfbot A selfbot made in DPY, made by Zenith. How to use Add your token in token = 'YOUR-MOMS-TOKEN-HERE' Change the prefix in prefix = If

[Ͼ⁴] Ƶephyr 2 Dec 02, 2021
💻VIEN is a command-line tool for managing Python Virtual Environments.

vien VIEN is a command-line tool for managing Python Virtual Environments. It provides one-line shortcuts for: creating and deleting environments runn

Artёm IG 5 Mar 19, 2022
An anime command-line system information tool written in python.

Animefetch - v0.0.3 An anime command-line system information tool written in python. Description Animefetch is an anime command-line system informatio

Thadeuks 6 Jun 17, 2022
A Telegram Bot Written In Python To Upload Medias To telegra.ph

Telegraph-Uploader A Telegram Bot Written In Python To Upload Medias To telegra.ph DEPLOY YOU CAN SIMPLY DEPLOY ON HEROKU BY CLICKING THE BUTTON BELOW

Rithunand 31 Dec 03, 2022
A command line tool to hide and reveal information inside images (works for both PNGs and JPGs)

ImgReRite A command line tool to hide and reveal information inside images (work

Jigyasu 10 Jul 27, 2022
Simple tool, to update linux kernel on ubuntu

Kerbswap Simple tool, to update linux kernel on ubuntu Information At the moment, this tool only supports "Ubuntu" distributions, but will be expanded

dword 1 Oct 31, 2021
A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

mycli A command line client for MySQL that can do auto-completion and syntax highlighting. HomePage: http://mycli.net Documentation: http://mycli.net/

dbcli 10.7k Jan 07, 2023
PwnWiki command line searching tool & bindings written in Python

pwsearch PwnWiki 数据库搜索命令行工具。 安装 您可以直接用 pip 命令从 PyPI 安装 pwsearch: pip3 install -U pwsearch 您也可以 clone 该仓库并直接从源码启动

PwnWiki 20 Jun 21, 2021
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie

HTTPie: human-friendly CLI HTTP client for the API era HTTPie (pronounced aitch-tee-tee-pie) is a command-line HTTP client. Its goal is to make CLI in

HTTPie 25.4k Dec 30, 2022
AML Command Transfer. A lightweight tool to transfer any command line to Azure Machine Learning Services

AML Command Transfer (ACT) ACT is a lightweight tool to transfer any command from the local machine to AML or ITP, both of which are Azure Machine Lea

Microsoft 11 Aug 10, 2022
Redial is a simple shell application that manages your SSH sessions on Unix terminal.

redial redial is a simple shell application that manages your SSH sessions on Unix terminal. What's New 0.7 (19.12.2019) Basic support for adding ssh

Bahadır Yağan 186 Oct 28, 2022