電通大の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
Tool for HackMyVM platform

HMV-cli It is a tool for the HackMyVM platform. With this tool you will be able to see the machines you have pending, filter by difficulty, download d

bitc0de 11 Sep 19, 2022
split-manga-pages: a command line utility written in Python that converts your double-page layout manga to single-page layout.

split-manga-pages split-manga-pages is a command line utility written in Python that converts your double-page layout manga (or any images in double p

Christoffer Aakre 3 May 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
Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections.

code-connect Open a file in your locally running Visual Studio Code instance from arbitrary terminal connections. Motivation VS Code supports opening

Christian Volkmann 56 Nov 19, 2022
Python library & console tool for controlling Xiaomi smart appliances

python-miio This library (and its accompanying cli tool) can be used to interface with devices using Xiaomi's miIO and MIoT protocols. Getting started

Teemu R. 2.4k Jan 02, 2023
Pastekan adalah website paste kode / teks sederhana

Pastekan pastekan adalah website paste kode / teks sederhana. install pip install pastekan penggunaan pastekan myfile.txt atau echo "hi" | pastekan

Sekai Kode 1 Dec 24, 2021
A command line tool (and Python library) for archiving Twitter JSON

A command line tool (and Python library) for archiving Twitter JSON

Documenting the Now 1.3k Dec 28, 2022
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
Runs a command in P4wnP1 and displays the output on OLED screen (SH1106)

p4wnp1-oled-terminal Runs a command in P4wnP1 and displays the output on OLED screen (SH1106) Works on Raspberry Pi Zero 2 W Tested successfully on RP

PawnSolo 1 Dec 14, 2021
A python command line tool to calculate options max pain for a given company symbol and options expiry date.

Options-Max-Pain-Calculator A python command line tool to calculate options max pain for a given company symbol and options expiry date. Overview - Ma

13 Dec 26, 2022
A Multipurpose bot with many Commands made using Pycord

This repo has all of the commands you will ever need in a discord bot. a Multipurpose discord bot

Pogrammar 42 Dec 18, 2022
Unofficial Open Corporates CLI: OpenCorporates is a website that shares data on corporations under the copyleft Open Database License. This is an unofficial open corporates python command line tool.

Unofficial Open Corporates CLI OpenCorporates is a website that shares data on corporations under the copyleft Open Database License. This is an unoff

Richard Mwewa 30 Sep 08, 2022
A linux-like remote terminal for Micropython

A linux-like remote terminal for Micropython

Christian Köver - Draxl 2 Nov 14, 2021
Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network)

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network)

Phil Wang 4.4k Jan 09, 2023
ICMP Reverse Shell written in Python 3 and with Scapy (backdoor/rev shell)

icmpdoor - ICMP Reverse Shell icmpdoor is an ICMP rev shell written in Python3 and scapy. Tested on Ubuntu 20.04, Debian 10 (Kali Linux), and Windows

Jeroen van Kessel 206 Dec 29, 2022
The easiest way to create beautiful CLI for your programs.

The Yandere is a program written in Python3, allowing you to create your own beautiful CLI tool.

Billy 31 Dec 20, 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
A command-line based, minimal torrent streaming client made using Python and Webtorrent-cli. Stream your favorite shows straight from the command line.

A command-line based, minimal torrent streaming client made using Python and Webtorrent-cli. Installation pip install -r requirements.txt It use

Jonardon Hazarika 17 Dec 11, 2022
This tool is a free and unlimited python CLI for google translate. based on google_trans_new.

GoTransPy A free and unlimited python CLI for google translate based on google_trans_new. It's very easy to use and solve the problem that the old api

Youssef Mohamed 2 Jan 10, 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