Skip to main content

A simple command-line based TODO-app in Python

Project description

A simple command-line based TODO-app in Python

Commands

  • main.py add <task_description> <...>: Add new tasks. Default priorities: Important = No/0, Urgent = No/0

  • main.py add --prio <task_description> <important_val> <urgent_val> <...>: Add new tasks with non-default priorities (possible priority values: 0 => No, 1 => Yes)

  • main.py list: List all non-finished tasks

  • main.py list all: List all tasks including the finished ones

  • main.py list --prio [all] <important_val> <urgent_val>: List tasks, filter for specific important/urgent values

  • main.py rm <task_id> <...>: Delete tasks

  • main.py done <task_id> <...>: Set a task as done/finished

  • main.py stats: Display number of finished tasks per day

  • main.py eisenhower: Display open tasks in an Eisenhower matrix according to set priorities (see https://en.wikipedia.org/wiki/Time_management#The_Eisenhower_Method)

How to continue development (tested on Windows)

  1. Navigate to the root directory of this repository

  2. pip install -e .

  3. Now, you can use tudo list etc. while still applying changes to the underlaying source code

  4. To uninstall, use pip uninstall tudo

How to publish to PyPi (already done)

  1. Register on PyPi (or, for tests, on TestPyPi) the and create a personal .pypirc file in your HOME directory (see https://packaging.python.org/distributing/#create-an-account)

  2. Register the package with python setup.py register -r <testpypi|pypi> (see https://packaging.python.org/distributing/#register-your-project)

  1. Attention: This does not work with the live PyPi version (Server response (410): This API is no longer supported, instead simply upload the file.). Using the register form (https://pypi.python.org/pypi?%3Aaction=submit_form) works.

  1. Upload the package with twine upload dist/* -r <testpypi|pipy> (see https://wiki.python.org/moin/TestPyPI)

  2. Install the package with pip install [-i https://testpypi.python.org/pypi] tudo

  3. To uninstall, use pip uninstall tudo

Also probably a good guide: http://peterdowns.com/posts/first-time-with-pypi.html

Open issues

  • database.db is currently created & saved in the same directory from where the tudo command was executed (leads to multiple database.db files). But our app should always use the same database location! (What is a good location? The user directory?)

  • Editing tasks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

tudo-0.1.0.dev6-py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 3

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