電通大の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
CLI helper to install Github releases on your system.

gh-release-install is a CLI helper to install Github releases on your system. It can be used for pretty much anything, to install a formatter in your CI, deploy some binary using an orcherstration to

Jonas L. 28 Nov 06, 2022
A terminal application for managing images and artifacts in Azure Container Registry.

acr-browser acr-browser is a terminal-based user interface for managing container images and artifacts in Azure Container Registry. 🚀 This project ow

Sam Dobson 5 Jul 30, 2022
Splitgraph command line client and python library

Splitgraph Overview Splitgraph is a tool for building, versioning and querying reproducible datasets. It's inspired by Docker and Git, so it feels fam

Splitgraph 313 Dec 24, 2022
A dec-bin converter uses 2's complement.

2's Complement Dec-Bin Converter A dec-bin converter uses 2's complement. Visit my Medium Post. What is 2's complement? Two's complement is the most c

C.H Jacky 9 Mar 01, 2022
CLI tool for one-line installation of C++/CMake projects.

cmakip When working on virtual environments, Python projects can be installed with a single command invocation, for example pip install --no-deps . .

Artificial and Mechanical Intelligence 4 Feb 15, 2022
py-image-dedup is a tool to sort out or remove duplicates within a photo library

py-image-dedup is a tool to sort out or remove duplicates within a photo library. Unlike most other solutions, py-image-dedup intentionally uses an approximate image comparison to also detect duplica

Markus Ressel 96 Jan 02, 2023
command line interface to manage VALORANT skins

A PROPER RELEASE IS COMING SOON, IF YOU KNOW HOW TO USE PYTHON YOU CAN USE IT NOW! valorant skin manager command line interface simple command line in

colinh 131 Dec 25, 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
This CLI give the possibility to do a queries in Star Wars API and returns a JSON in a terminal.

Star Wars CLI (swcli) This CLI give the possibility to do a queries in Star Wars API and returns a JSON in a terminal. Install $ pip install swcli Qu

Pery Lemke 5 Nov 05, 2021
Interactive Redis: A Terminal Client for Redis with AutoCompletion and Syntax Highlighting.

Interactive Redis: A Cli for Redis with AutoCompletion and Syntax Highlighting. IRedis is a terminal client for redis with auto-completion and syntax

2.2k Dec 29, 2022
A simple python script to execute a command when a YubiKey is disconnected

YubiKeyExecute A python script to execute a command when a YubiKey / YubiKeys are disconnected. ‏‏‎ ‎ How to use: 1. Download the latest release and d

6 Mar 12, 2022
Tncli - TON smart contract command line interface

Tncli TON smart contract command line interface State Not working, in active dev

Disintar IO 100 Dec 18, 2022
Random scripts and other bits for interacting with the SpaceX Starlink user terminal hardware

starlink-grpc-tools This repository has a handful of tools for interacting with the gRPC service implemented on the Starlink user terminal (AKA "the d

270 Dec 29, 2022
A terminal slots programme in PY

PYSlots PyPI and Test PyPI External Links PyPI Test PyPI Install Look directly at the bugs! Version pip install pyslots "Don't look directly at the bu

Luke Batema 4 Nov 30, 2022
⚙ A lightweight command line interface library for creating commands.

⚙ A lightweight command line interface library for creating cli commands. About | Installation | Usage | Features | Contributors | License About Next:

Serum 16 Sep 25, 2022
Management commands to help backup and restore your project database and media files

Django Database Backup This Django application provides management commands to help backup and restore your project database and media files with vari

687 Jan 04, 2023
A simple command-line tracert implementation in Python 3 using ICMP packets

Traceroute A simple command-line tracert implementation in Python 3 using ICMP packets Details Traceroute is a networking tool designed for tracing th

James 3 Jul 16, 2022
CryptoCo-py is a Python CLI application that uses CoinGecko API to allow the user to query cryptocurrency information by typing simple commands.

CryptoCo-py is a Python CLI application that uses CoinGecko API to allow the user to query cryptocurrency information by typing simple com

1 Jan 10, 2022
Low-Cost Open Source Ventilator or PAPR

Last updated 2020/04/19 Low-Cost Open-Source Ventilator-ish Device or PAPR NOTE: This is currently an independent project not affiliated with any comm

Johnny Lee 1.7k Dec 21, 2022
Container images for portable development environments

Docker Dev Spin up a container to develop from anywhere! To run, just: docker run -ti aghost7/nodejs-dev:boron tmux new Alternatively, if on Linux: p

Jonathan Boudreau 163 Dec 22, 2022