A command line todo list manager
pda is a command line todo list manager. Unlike other todo list tools, pda strives to find a balance between usability and functionality: a todo list manager should be easy to use and learn while offering enough features to accomplish what has to be done and to support more advance (however convenient and useful) usecases.
pda is simple to use, yet more powerful than you think.
Just like any other todo list tool, you can add a task in a list. Use command:
pda -a [task summary text] -t [due time frame] -p [priority] [name of the list]
Option -t specifies the due time frame for this task; only values among d (due today), w (due this week), m (due this month), s (due this season) and y (due this year) are allowed.
Option -p specifies the priority for this task; only values among 1 (low), 2 (medium), 3 (high), 4 (must do) and 5 (urgent and must do) are allowed.
Positional argument [name of the list] specifies the name of the list this task belongs to. The name can be any string you find appropriate, for example todo, toread or tohack; and it’s perfectly okay to have different lists exist at the same time.
Option -t, -p and positional argument [name of the list] are all optional attributes of a task, they will be None if not provided. Option -a, however, is compulsory to have a value.
$ pda -a 'wash dishes' -t d -p 4 todo $ pda -a 'house cleaning' -t d -p 5 todo $ pda -a 'write a technical blog post' -tw -p2 towrite $ pda -a 'read Free Fall' -tm -p3 toread
Tasks are sorted by due time, then by priority, then by alphabetical order of list names and last by task number, before listed on the command line.
To list ALL the tasks, do pda:
$ pda TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 2 house cleaning todo day urgmust 1 wash dishes todo day must 3 write a technical blog post towrite week medium 4 read Free Fall toread month high
To list only toread list’s tasks, do pda toread:
$ pda toread TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 4 read Free Fall toread month high
To list the tasks due at the end of this month, use pda -tm:
$ pda -tm TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 4 read Free Fall toread month high
To list the tasks with priority urgent and must do, use pda -p5:
$ pda -p5 TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 2 house cleaning todo day urgmust
To list the tasks due at the end of today and have priority must and belongs to todo list, use pda -td -p4 todo:
$ pda -td -p4 todo TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 1 wash dishes todo day must
Often, you might want to change the due time, priority, task summary, or even list it belongs to of a task. You may do so with the following syntax:
pda -e [task number] -s [new task summary text] -t [new due time frame] -p [new priority] [new list name]
Option -e specifies the task number (the task id) of the task to be updated.
Option -s specifies the new task summary of the task to be updated. It should be a quoted string (either double or single quote).
Option -t, Option -p and positional argument [new list name] are identical as those in the CREATE tasks part.
If an option or argument is not provided in the command, then the value associated with that option or argument will stay unchanged for that task.
Let’s postpone the due time to the end of this season for task number 4:
$ pda -e4 -ts $ pda toread TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 4 read Free Fall toread season high
Now modify summary text of task number 2:
$ pda -e2 -s 'clean study room' $ pda todo TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 2 clean study room todo day urgmust 1 wash dishes todo day must
Now modify several attributes of task number 3:
$ pda -e3 -td -p3 todo $ pda TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 2 clean study room todo day urgmust 1 wash dishes todo day must 3 write a technical blog post todo day high 4 read Free Fall toread season high
The best part of a todo list tool is you can remove a task after you finish it:
pda -f [list of task numbers]
Now, say I have already finished wash dishes and clean study room tasks therefore I would like to delete them from my todo list:
$ pda -f 1 2 $ pda TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ======== 3 write a technical blog post todo day high 4 read Free Fall toread season high
Sometimes, you might want to empty all your tasks and restart:
$ pda --clear $ pda TASK# SUMMARY LIST TYPE DUE TIME PRIORITY ===== =========================== ========= ======== ========
Syncing Data With Github Issues
It is also possible to make your todo list(s) portable through web interface! pda can sync your local list data to Github Issue; The choice of Github Issues is a nice one, since an issue tracker is also a todo list manager! Github Issues actually provides decent visualization over some statistics of tasks. But, of course, you need to have a Github account before using this feature. In addition, pda needs to be configured to be in remote mode to communicate with Github Issues. For more detail, see Configuration Setting section.
Once pda is configured correctly, you can start using pda by downloading data from Github Issues to local data store:
$ pda --start
After finishing using pda in the current ‘session’ (all the updates in between --start and --stop commands) and want to upload the updates to Github Issues, do:
$ pda --stop
Now you shall see the exact same copy of your local list data shown on Github Issues!
pda can be configured by a configuration file named .pdaconfig reside in your home directory. If no such file is present, then pda simply use some default settings internally, and behave only in local mode; meaning data is only stored locally.
To make pda operate in remote mode (meaning the data is stored both locally and remotely on Github Issues), you need to set several parameters in the configuration file.
See an example configuration file below:
# a typical configuration file contains two sections: [pda] and [github] [pda] ; the local database where pda will store its data database-path = /tmp/.pdastore [github] ; username on github username = your_github_username ; the name of the repository where you want to store your list data repo-name = your_github_reponame ; authentication token for a Github application which pda will use ; to communitcate with Github Issues API, see link below: ; https://help.github.com/articles/creating-an-access-token-for-command-line-use auth-token = your_github_app_token
$ sudo pip install pda
Or (but not recommended):
$ sudo easy_install pda
- Added Latest Release, Supported Python Version and Downloads shields.
- Added wheel universal support to both python 2 and 3.
- Fixed beta release date in HISTORY.rst.
- Added support to py33 and py34 without using 2to3.
- Added testing support to py33 and py34 without using 2to3.
- First Beta Release.
- Added –finish option; now pda is feature-complete.
- Improved coding style for control.py by removing redundant if-else branches.
- Updated tool description.
- Improved unit test and test automation process.
- Improved pda README documentation.
- Remove installing unittest2, since it’s not used at all by pda.
- Added --clear option to allow pda to remove all tasks stored.
- Improved configuration module for runtime usage.
- Sorted pda output based on DUE TIME, PRIORITY, LIST TYPE and TASK#.
- Completed syncing data section in README.rst.
- Refined README.rst to provide instructions for .pdaconfig file.
- Refined README.rst.
- Fixed broken reStructuredText.
- Removed unused import PdaConfig.
- Fixed sync_remote_dbstore method bug for transition between local mode and remote mode.
- Fixed max_task_number attribute getter for shelve is empty.
- Fixed format string bug (#50) to be compatible with python 2.6.
- Removed debugging assert statements.
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|pda-0.3.0.2-py2.py3-none-any.whl (19.3 kB) Copy SHA256 hash SHA256||Wheel||py2.py3||Aug 23, 2014|
|pda-0.3.0.2.tar.gz (17.5 kB) Copy SHA256 hash SHA256||Source||None||Aug 23, 2014|