Skip to main content

A powerful command-line interface for managing Google Tasks with enhanced features and functionality which is secure and easy to use with advanced features.

Project description

Google Tasks CLI Development

This directory contains the source code for the Google Tasks CLI application.

For general usage, we recommend installing the package from PyPI:

pip install gtasks-cli

See the main project README.md for more information on installation and usage.

Features

  • Full Google Tasks API integration with OAuth2 authentication
  • Advanced filtering and search capabilities
  • Context management for different task views
  • Reporting and analytics
  • Time tracking and Pomodoro technique integration
  • Recurring tasks and dependencies
  • Offline mode with synchronization
  • Import/export functionality
  • Optimized Advanced Sync for improved performance
  • Multi-account support
  • Interactive mode with keyboard navigation
  • Task deduplication
  • Rich terminal UI with color coding

Installation for Development

To set up the development environment:

# Clone the repository
git clone <repository-url>
cd gtasks_automation/gtasks_cli

# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install dependencies
pip install -r requirements.txt

# Install in development mode
pip install -e .

Post-Installation Setup

After installing the package, we strongly recommend running the setup assistant to configure your environment:

python -m gtasks_cli.setup_assistant

The setup assistant will:

  • Verify that gtasks-cli is properly installed
  • Create the configuration directory (~/.gtasks)
  • Set up default configuration values
  • Guide you through Google authentication setup
  • Test basic functionality

For more information, see SETUP_ASSISTANT.md.

Running Tests

Various test scripts are available in the root directory:

# Run a simple sync test
python simple_sync_test.py

# Run comprehensive duplication tests
python comprehensive_dup_test.py

Usage During Development

During development, you can run the CLI directly:

python -m gtasks_cli.main --help

Common development commands:

# Enter interactive mode for a rich, keyboard-driven interface
python -m gtasks_cli.main interactive

# List tasks
python -m gtasks_cli.main list

# Add a new task
python -m gtasks_cli.main add "Buy groceries" --due "tomorrow"

# Mark task as done
python -m gtasks_cli.main done <task-id>

# Sync with Google Tasks
python -m gtasks_cli.main sync

Production Installation

For production use, install the package from PyPI:

pip install gtasks-cli

Then use the gtasks command directly:

gtasks --help

TODO

  • auto-sync on update/add/delete

Development

This project follows a modular architecture with clear separation of concerns:

  • CLI Layer: Command-line interface using Click framework
  • Core Layer: Business logic for task and tasklist management
  • Integration Layer: Google Tasks API integration and authentication
  • Storage Layer: Local caching and configuration management
  • Reporting Layer: Analytics and reporting functionality

License

MIT

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

gtasks_cli-0.1.5.tar.gz (155.3 kB view details)

Uploaded Source

Built Distribution

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

gtasks_cli-0.1.5-py3-none-any.whl (174.7 kB view details)

Uploaded Python 3

File details

Details for the file gtasks_cli-0.1.5.tar.gz.

File metadata

  • Download URL: gtasks_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 155.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for gtasks_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 4412031130f1949e15ce56adb4f7ee1a98dd77645cbd76fa2b6ab61cc43b62c8
MD5 b248c688b1de93c89d66ad6e75fdf20f
BLAKE2b-256 84128398f1592bdf67dc1772b32a232046a4afb92fea3df649fdce41e419b689

See more details on using hashes here.

File details

Details for the file gtasks_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: gtasks_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 174.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for gtasks_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9f98d2a638685e8fd7c1ecccc7c58e3053faa34711693a601dfbcd1aa1c2c037
MD5 899e76b0ba60a440a07f97425b284c78
BLAKE2b-256 4f7ca62e2ac4b1511d6332bf5a644cb6b6acf77f85de702b9589665d7511b23c

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