Skip to main content

A CLI task management tool

Project description

later-cli

PyPI version

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

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

インストール

実行にはPython 3.10以降が必要です。

PyPIからインストール

PyPIからインストール可能です。

pip install later-cli

すると、later コマンドが利用可能になります。

GitHubリポジトリからインストール

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

以下はuvをインストールするためのコマンドです。

# uvのインストール
pip install uv
# OR
# brew install uv
# cargo install --git https://github.com/astral-sh/uv uv

次いで、本プロジェクトのリポジトリをクローンして、依存関係をインストールします。

# リポジトリを取ってくる
git clone https://github.com/kujirahand/later-cli.git
cd later-cli

# 依存関係をインストールして同期
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

later の使い方

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

Commands:
  add           Add a new task. Example: later.py add "3d" "Submit report"
  a             Alias for add (shorter command)
  show          Show all tasks
  list          Alias for show
  ls            Alias for show (shorter command)
  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
  --file FILE   Use FILE as the task JSON file
  --help        Show this help message

Examples:
  later.py add "3d" "レポート提出"        # 3日後のタスクを追加
  later.py add "10h" "打ち合わせ"         # 10時間後のタスクを追加
  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 --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.1.tar.gz (12.2 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.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for later_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d03c5bc2490c0d7eda52541b867cbd9afa1772ede867d1d9fc444fdab30d3a6b
MD5 1cecf9ed9bbf68731feb0e587a821c97
BLAKE2b-256 f8eb1b607bfb6bdab5bbdc66fac5107078df1d39597d19f7083c6bc294d289c2

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for later_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 afc13c439eb8d4ef8f56558aaf722104438b2616315bc5e9976743f7102e2772
MD5 1bc5a3a3545d5ad898d1f927c3c32bbe
BLAKE2b-256 8eb17b23e6c39aba5eb9cf7ebcd92de5af4ec372ebbcbcf8b54968ddea436e66

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