電通大の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
Magma is a NeoVim plugin for running code interactively with Jupyter.

Magma Magma is a NeoVim plugin for running code interactively with Jupyter. Requirements NeoVim 0.5+ Python 3.8+ Required Python packages: pynvim (for

Daniel Csillag 372 Dec 26, 2022
🕰 The command line tool for scheduling Python scripts

hickory is a simple command line tool for scheduling Python scripts.

Max Humber 146 Dec 07, 2022
Simple CLI for managing Postgres databases in Flask.

Overview Simple CLI that provides the following commands: flask psql create flask psql init flask psql drop flask psql setup: create → init flask psql

Daniel Reeves 21 Oct 03, 2022
A python program to detect your emotion and suggest a playlist.

mood_music A python program to detect your emotion and suggest a playlist. This program is written in python using opencv,FER() and tensorflow This pr

Aditya_Sai 1 Jan 02, 2022
Tmux Based Dropdown Dashboard For Python

sextans It's a private configuration and an ongoing experiment while I use Archlinux. A simple drop down dashboard based on tmux. It includes followin

秋葉 4 Dec 22, 2021
Module for converting 2D Python lists to fancy ASCII tables. Table2Ascii lets you display pretty tables in the terminal and on Discord.

table2ascii Module for converting 2D Python lists to a fancy ASCII/Unicode tables table2ascii 📥 Installation 🧑‍💻 Usage Convert lists to ASCII table

Jonah Lawrence 40 Jan 03, 2023
A library for creating text-based graphs in the terminal

tplot is a Python package for creating text-based graphs. Useful for visualizing data to the terminal or log files.

Jeroen Delcour 164 Dec 14, 2022
A handy command-line utility for generating and sending iCalendar events

A handy command-line utility for generating and sending iCalendar events This simple command-line utility is designed to generate an iCalendar event,

Baochun Li 17 Nov 21, 2022
nbcommands bring the goodness of Unix commands to Jupyter notebooks.

nbcommands nbcommands bring the goodness of Unix commands to Jupyter notebooks. Installation You can simply use pip to install nbcommands: $ pip insta

Vinayak Mehta 181 Dec 23, 2022
xonsh is a Python-powered, cross-platform, Unix-gazing shell

xonsh is a Python-powered, cross-platform, Unix-gazing shell language and command prompt.

xonsh 6.7k Dec 31, 2022
Objexplore is an interactive Python object explorer for the terminal.

Objexplore is an interactive Python object explorer for the terminal. Use it while debugging, or exploring a new library, or whatever! 9D1FAC73-B2A5-4

kylepollina 249 Dec 23, 2022
stonky is a simple command line dashboard for monitoring stocks.

stonky is a simple command line dashboard for monitoring stocks.

Jessy Williams 228 Dec 14, 2022
dotfilery, configuration, environment settings, automation, etc.

┌┬┐┌─┐┌─┐┌─┐┬ ┬┌┬┐┬ ┬┬┌─┐ │││├┤ │ ┬├─┤│ │ │ ├─┤││ :: bits & bobs, dots & things. ┴ ┴└─┘└─┘┴ ┴┴─┘┴ ┴ ┴ ┴┴└─┘ @megalithic 🚀 Instal

Seth Messer 89 Dec 25, 2022
Animefetch is 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
pyGinit is a command line tools that help you to initialize your current project a local git repo and remote repo

pyGinit pyGinit is a command line tools that help you to initialize your current project a local git repo and remote repo Requirements Requirements be

AlphaBeta 15 Feb 26, 2022
Detect secret in source code, scan your repo for leaks. Find secrets with GitGuardian and prevent leaked credentials. GitGuardian is an automated secrets detection & remediation service.

GitGuardian Shield: protect your secrets with GitGuardian GitGuardian shield (ggshield) is a CLI application that runs in your local environment or in

GitGuardian 1.2k Jan 06, 2023
Limit your docker image size with a simple CLI command. Perfect to be used inside your CI process.

docker-image-size-limit Limit your docker image size with a simple CLI command. Perfect to be used inside your CI process. Read the announcing post. I

wemake.services 102 Dec 14, 2022
Analyzing the most strategic words to guess on Wordle, based on letter frequency distributions

wordle-analysis Evaluating different heuristics to determine the most effective solving strategy and building an AI-powered assistant tool to help you

Sejal Dua 9 Feb 27, 2022
Python Library and CLI for exporting MySQL databases

expdb Python library and CLI for exporting MySQL databases Installation Pre-requisites MySQL server Python 3.9+ Using git Clone the repository to your

Devansh Singh 1 Nov 29, 2021
A powerful Minecraft command library.

Mecha A powerful Minecraft command library. from mecha import Mecha

32 Dec 10, 2022