Skip to main content

A simple task management package.

Project description

TaskManager

TaskManager is a simple Python package for managing tasks. It's designed to be used in command-line interface (CLI) applications, providing basic task management functionality.

Description

This package was created as part of a learning project to understand Python package development and distribution. While it's not intended to be a comprehensive task management solution, it serves as a practical example of how to structure and package a Python project.

The TaskManager package provides functionality to:

  • Add tasks to a to-do list
  • Mark tasks as completed
  • Remove tasks from the list
  • View current tasks and completed tasks

What's New in 0.2.0 Release

The 0.2.0 release introduces several key features and improvements to enhance task management and tracking. This version adds daily task tracking, with new lists for daily added and completed tasks, allowing users to generate daily progress reports. The addition of the report method enables saving task activity in a text file, named after the current date. Task addition and removal are optimized for better performance and clearer feedback. Error handling during data loading is improved, with automatic resets on failure. Additionally, task formatting and list resetting have been streamlined for a cleaner and more efficient user experience.

Usage

Here's a quick example of how to use the TaskManager effectively:

from ttask_manager.ttask_manager import TaskManager

# Create a new TaskManager instance
tm = TaskManager()

# Load existing tasks (if any)
tm.load_recent_state()

# Add multiple tasks to the to-do list
tm.add_task("Write README", "Create setup.py", "Push to GitHub", "Test the application")

# View current to-do tasks
print(tm.current_state('to-do'))

# Mark specific tasks as done
tm.task_done("Write README", "Test the application")

# View completed tasks
print(tm.current_state('done'))

# Generate a report of today's tasks
print(tm.report())

# Clear the to-do list after completing tasks
tm.clear_todo_list()

# Reset both lists if needed
tm.reset()

This example showcases how to create a TaskManager instance, load existing tasks, manage to-do and completed tasks, generate a daily report, and reset the lists as needed.

Features

  • Add multiple tasks at once
  • Remove tasks from the to-do list
  • Mark tasks as completed
  • View current to-do list and completed tasks
  • Clear to-do or completed lists
  • Reset both lists

Development

This project was primarily created as a learning exercise in Python package development. Its simplicity is intentional, and there are no plans for significant feature additions or expansions. However, if you find a bug or have a suggestion for a minor improvement, feel free to open an issue on the GitHub repository.

Notice

Due to the pressure of my studies, I will be taking a pause from further development on the TaskManager. Thank you for your understanding and support during this time.

Licensing

The code in this project is licensed under MIT license.

Author

Taha Yasser Adnan

This project is part of my journey in learning Python package development. While it may not be a groundbreaking package, it represents an important step in understanding the process of creating, packaging, and distributing Python projects.

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

ttask_manager-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

ttask_manager-0.2.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file ttask_manager-0.2.0.tar.gz.

File metadata

  • Download URL: ttask_manager-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for ttask_manager-0.2.0.tar.gz
Algorithm Hash digest
SHA256 519239849afd19e62b21a7426e95ecf216b550490f46b9c1c7c1c8165d71a3f4
MD5 19256ce7b5e256e87f4b9c4c24df66b6
BLAKE2b-256 04ab8b294acdcb57f3e7147e3181c96af6e8f1fa7fc9cf1f0949162af4a8d4a5

See more details on using hashes here.

File details

Details for the file ttask_manager-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ttask_manager-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 686591c0504529ed1fd1fc324d9d639367e25ac5375a6025d38725b112843886
MD5 3b384a7b6d5ec5ee9f4fa84efe38f79b
BLAKE2b-256 b37540bb35c6972742897305ac179085cdc3c1277a8cb59f1aabba5536d759be

See more details on using hashes here.

Supported by

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