Skip to main content

A CLI task management tool

Project description

later-cli

PyPI version

A CLI task management tool. CLIでタスクを管理するシンプルなプログラムです。

ターミナルで使えるシンプルなタスク管理ツール「later」

Installation

Requires Python 3.10 or later. (実行にはPython 3.10以降が必要です。)

Install from PyPI

You can install later-cli using pip:

pip install later-cli

Then you can run the later command in your terminal.

Install from GitHub Repository

パッケージマネージャーである uv を使用してセットアップを行います。以下のコマンドを実行するだけで自動的に仮想環境(.venv)が構築され、依存関係の同期が完了します。以下はuvをインストールするためのコマンドです。

# Install uv
pip install uv
# OR
# brew install uv
# cargo install --git https://github.com/astral-sh/uv uv

And then, clone the repository and set up the environment:

# Clone the repository
git clone https://github.com/kujirahand/later-cli.git
cd later-cli

# Install dependencies and set up the environment
uv sync

macOS/Linuxの場合

本リポジトリをcloneした後、パスにスクリプトのディレクトリを追加します。すると、later args... の形でどこからでも利用できます。 ラッパースクリプト later は、.venv が存在すれば自動的に uv run を経由して実行されます。

~/.zshrc~/.bashrc に以下の設定を追加すると便利です。

LATER_CLI_PATH="/path/to/later-cli"  # later-cliのパスに置き換える
PATH="$LATER_CLI_PATH:$PATH"
# 起動時に期限の来たタスクをチェックする
later check

Windowsの場合

WindowsのPowerShellを使う場合、ユーザーフォルダにある ~\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 というファイル($PROFILE の値)をテキストエディタで開いて、下記のような内容を追加します。なお、ファイルやフォルダがない場合は作成して追加する必要があります。

cd /path/to/later-cli  # later-cliのパスに置き換える
uv run later.py check

How to Use later-cli

Please type later --help to see the available commands and options.

Usage:
  later.py <command> [<args>...]

Commands:
  add           Add a new task. Example: later.py add "3d" "Submit report"
  a             Alias for add (shorter command)
  list          Show all tasks
  ls            Alias for list (shorter command)
  show          Alias for list
  delete        Delete a task by number. Example: later.py delete 1
  del           Alias for delete (shorter command)
  clear         Remove overdue tasks
  check         Show due tasks
  cal           Show weekly schedule in calendar format
  info          Show the data file path
  version       Show version information
  language      Set display language (en / ja)
  --file FILE   Use FILE as the task JSON file
  --help        Show this help message

Examples:
  later.py add "3d" "レポート提出"        # add task due in 3 days
  later.py add "10h" "打ち合わせ"         # add task due in 10 hours
  later.py add "今日" "今日のタスク"         # 本日の午前8時のタスクを追加
  later.py add "明日" "明日のタスク"        # 明日の午前8時のタスクを追加
  later.py add "明日20時" "明日20時"       # 明日20時のタスクを追加
  later.py add "明後日" "明後日のタスク"    # 明後日の午前8時のタスクを追加
  later.py add "来週" "来週のタスク"       # 来週の月曜日の午前8時のタスクを追加
  later.py add "来週月曜" "レポート提出"    # 来週の月曜日の午前8時のタスクを追加
  later.py add "水曜日" "ゴミ出し"         # 次の水曜日の午前8時のタスクを追加
  later.py add "来月第二月曜" "月次報告"    # 来月の第2月曜日の午前8時のタスクを追加
  later.py add "明日10時" "レポート提出"    # 明日の午前10時00分のタスクを追加
  later.py add "15:30" "打ち合わせ"        # 今日の15時30分(過ぎていれば明日)のタスクを追加
  later.py add "5/25" "テスト用タスク"       # (今年の) 5月25日(過去なら来年)の朝8時のタスクを追加
  later.py add "12月3日 15:30" "月次報告"     # 12月3日の15時30分のタスクを追加
  later.py add "2026-05-25" "テスト用タスク"   # 2026年5月25日の朝8時のタスクを追加
  later.py show                         # 全タスク一覧を表示
  later.py delete 1                     # 番号1のタスクを削除
  later.py clear                        # 期限切れタスクを削除
  later.py check                        # 期限切れタスクを表示
  later.py cal                          # 週間予定をカレンダー形式で表示
  later.py info                         # データの保存場所を表示
  later.py version                      # バージョン情報を表示
  later.py language ja                  # 表示言語を日本語(ja)に設定
  later.py lang en                      # 表示言語を英語(en)に設定
  later.py --file /tmp/tasks.json add now "テスト" # 指定したファイルにタスクを追加

開発者向け (just)

本プロジェクトではタスクランナーとして just を導入しています。開発時のテストやコード品質の管理(Lint/Format)に利用できます。インストール方法は justのGitHubリポジトリ をご参照ください。

justのコマンド一覧

プロジェクトのルートディレクトリで以下のコマンドを実行できます。

  • just または just --list: 利用可能なコマンドの一覧を表示します。
  • just install: 依存関係パッケージ(pytest, black, ruff 等)をインストールします。
  • just test: pytest を使用してテストを実行します。
  • just lint: ruff を使用してコードの静的解析(Linter)を実行します。
  • just format: black および ruff を使用してコードを自動整形(Formatter)します。

詳しい使い方

以下のマイナビ様の連載で、プログラムの使い方や、プログラムの詳しい解説を掲載しています。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

later_cli-0.1.2.tar.gz (13.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

later_cli-0.1.2-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

Details for the file later_cli-0.1.2.tar.gz.

File metadata

  • Download URL: later_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 13.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for later_cli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 e71e3b7c4fcea45901968bbd949f5780061d54c9540710b1f3f699cf834a6428
MD5 195298f3f0410b14e3a4bc9eff8c9f11
BLAKE2b-256 fdff67cac300780808ca14578e893c45a9c1ff1a4347cc7724c5689da3df8eff

See more details on using hashes here.

File details

Details for the file later_cli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: later_cli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for later_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 477a763b03c30d70d219a086a358001442323cd5bec747612e1a82689c51f0e7
MD5 3650de871bedf00e769ae2408e39ba69
BLAKE2b-256 0cd0127605adeb5be8efb87856d0e45032c10ed1b926b5467d9c3b04cd8365fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page