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, you can run 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.3.tar.gz (151.2 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.3-py3-none-any.whl (169.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for gtasks_cli-0.1.3.tar.gz
Algorithm Hash digest
SHA256 30bebc561a557eb02c864eda422bbe61e7f34186a370b895aec84e8a9af334fe
MD5 2eca632c894af372774ba8ede708e493
BLAKE2b-256 396fadc01a08e978a5f5edbc6f7e2fa93cce125a43877cc9f6eb4b4c002342f1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gtasks_cli-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7586001a9b0a20beb8c16c70810d4c34a6f62cd58c76c3de5c2d60678a82661c
MD5 a180b4e0dcae3b0bcb846bcc69f1a8dc
BLAKE2b-256 503768f2ee968ecd010ce269da774da7dc68ad2eada4ef511bf0f3ff3e571f1b

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