電通大の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
PdpCLI is a pandas DataFrame processing CLI tool which enables you to build a pandas pipeline from a configuration file.

PdpCLI Quick Links Introduction Installation Tutorial Basic Usage Data Reader / Writer Plugins Introduction PdpCLI is a pandas DataFrame processing CL

Yasuhiro Yamaguchi 15 Jan 07, 2022
A set of libraries and functions for simplifying automating Cisco devices through SecureCRT.

This is a set of libraries for automating Cisco devices (and to a lesser extent, bash prompts) over ssh/telnet in SecureCRT.

Matthew Spangler 7 Mar 30, 2022
PyDropper - pick colors everywhere

PyDropper - pick colors everywhere Downloads Settings PyDropper is an eyedropper

Herman Brunberg 2 Jan 04, 2022
A next-generation CLI and TUI that aims to be your personal assistant for everything competitive programming related. 🚀

Competitive Programming Tool Kit The Competitive Programming Tool Kit (cptk for short), is a command line and terminal user interface (CLI and TUI) th

Alon 4 May 21, 2022
Squirrel - A cli program to track writing progress

Squirrel Very much a WIP project squirrel is a command line program that tracks you writing progress and gives you useful information and cute and pic

3 Mar 23, 2022
A CLI for streaming, downloading anime shows. The shows data is indexed through GogoAnime.

Anime-cli A CLI for streaming, downloading anime shows. The shows data is indexed through GogoAnime. Please install mpv video-player for better experi

Chirag Singla 31 Oct 23, 2022
Wordle helper: help you print posible 5-character words based on you input

Wordle Helper This program help you print posible 5-character words based on you

Gwan Thanakrit Juthamongkhon 4 Jan 19, 2022
Stephen's Obsessive Note-Storage Engine.

Latest Release · PyPi Package · Issues · Changelog · License # Get Sonse and tell it where your notes are... $ pip install sonse $ export SONSE="$HOME

Stephen Malone 23 Jun 10, 2022
f90nml - A Fortran namelist parser, generator, and editor

f90nml - A Fortran namelist parser, generator, and editor A Python module and command line tool for parsing Fortran namelist files Documentation The c

Marshall Ward 110 Dec 14, 2022
PwnWiki command line searching tool & bindings written in Python

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

PwnWiki 20 Jun 21, 2021
Enriches Click with option groups, constraints, command aliases, help sections for subcommands, themes for --help and other stuff.

Enriches Click with option groups, constraints, command aliases, help sections for subcommands, themes for --help and other stuff.

Gianluca Gippetto 62 Dec 22, 2022
Shellmon is a tool used to create and control a webshell remotely, created using the Python3

An Simple PHP Webshell Manager Description Shellmon is a tool used to create and control a webshell remotely, created using the Python3 programming la

22XploiterCrew 12 Dec 30, 2022
googler is a power tool to Google (web, news, videos and site search) from the command-line.

googler is a power tool to Google (web, news, videos and site search) from the command-line.

Terminator X 5.9k Jan 04, 2023
Skiller - With this payload you can control the target computer with (cmd)

Skiller - With this payload you can control the target computer with (cmd)

1 Jan 02, 2022
Command line tool for monitoring changes of File entities scoped in a Synapse File View

Synapse Monitoring Provides tools for monitoring and keeping track of File entity changes in Synapse with the use of File Views. Learn more about File

Sage Bionetworks 3 May 28, 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
Colors in Terminal - Python Lang

🎨 Colorate - Python 🎨 About Colorate is an Open Source project that makes it easy to use Python color coding in your projects. After downloading the

0110 Henrique 1 Dec 01, 2021
Analysis of a daily word game "Wordle"

Wordle Analysis of a daily word game "Wordle" https://www.powerlanguage.co.uk/wordle/ Description Worlde is a daily word game in which a player attemp

Bartek 1 Feb 07, 2022
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.

parse_it A python library for parsing multiple types of config files, envvars and command line arguments that takes the headache out of setting app co

Naor Livne 97 Oct 22, 2022
Play WORDLE game in your terminal.

Wordle TUI Play WORDLE game in your terminal. The game will be kept the same as the Web version. Prerequisites Python 3.7+ Linux/MacOS (Windows is not

Frost Ming 61 Oct 30, 2022