Skip to main content

A command-line interface for managing tasks with projects and priorities.

Project description

Task CLI

A command-line interface (CLI) tool for managing tasks with support for projects, priorities, and persistence.

Features

  • Add Tasks: Create new tasks with optional project and priority.
  • List Tasks: View all tasks, or filter by project/priority.
  • Complete Tasks: Mark tasks as done.
  • Delete Tasks: Remove tasks permanently.
  • Export Tasks: Export tasks to a CSV file.
  • Persistence: Tasks are saved to a JSON file.

Usage

Add Task

Create a new task.

# Simple
python3 task.py add "Buy milk"

# With Project and Priority
python3 task.py add "Finish Report" --project Work --priority High

# Recurring Task (Daily, Weekly, etc.)
python3 task.py add "Daily Standup" --recurrence daily

# With Due Date
python3 task.py add "Submit Assignment" --due-date 2023-12-31

List Tasks

View tasks with optional filters.

# List all
python3 task.py list

# Filter by Project
python3 task.py list --project Work

# Filter by Priority
python3 task.py list --priority High

Update Task

Modify an existing task.

# Update Title and Priority
python3 task.py update <id> --title "New Title" --priority Low

# Update Recurrence
python3 task.py update <id> --recurrence weekly

# Relist a Task (Move from Done -> Pending)
# This increments the 'Relist' counter
python3 task.py update <id> --status pending

# Update Due Date
python3 task.py update <id> --due-date 2024-01-15

Complete Task

Mark a task as done.

python3 task.py done <id>

Note: If the task is recurring, a new pending task will be automatically created.

Delete Task

Permanently remove a task.

python3 task.py delete <id>

Export Tasks

Export tasks to a CSV file.

# Export to default file (tasks.csv)
python3 task.py export

# Export to specific file
python3 task.py export my_tasks.csv

Running Tests

python3 -m unittest discover tests

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

ojt_task_cli-0.0.6.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

ojt_task_cli-0.0.6-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file ojt_task_cli-0.0.6.tar.gz.

File metadata

  • Download URL: ojt_task_cli-0.0.6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ojt_task_cli-0.0.6.tar.gz
Algorithm Hash digest
SHA256 3d58032228b1a425d2e9557eda6e0f01388439564a9e4c080ae215eb30d0340e
MD5 bb8c1f55ad05336fff1e022619eecdd4
BLAKE2b-256 c8188180511b6034915ea7be8dad30fe194e32abddf2a042ddf322d005b6fc07

See more details on using hashes here.

File details

Details for the file ojt_task_cli-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: ojt_task_cli-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ojt_task_cli-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e386b3d3b4b13117c7a74d40733e238528a9707f9247e6958240b3b1e4787028
MD5 53c1db765f37aec09c42911ce92f3229
BLAKE2b-256 3f9d4d4e575b08a846166ce613021c8026e3077412203da6e59f9b680d83c924

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