It's a CLI to track your tasks.
In a Notion.so page
In the tune of taskbook (https://github.com/klaussinani/taskbook) which is an npm package that I started using and really enjoyed; but I wanted something that was more portable across my devices and that I could also shared (i.e., it needed a back end)
I started looking at Notion for this, but wanted to stay in CLI land vs. having to task back to bright colours to check my code to do's
Thus, this mini project was born
Uses the Python library notion-py (https://github.com/jamalex/notion-py) to access to the Notion 'API'
- Requirements - Python3 and pip install the requirements.txt dependencies
- Edit dev-env.source.sample and enter your page and token (you can find the token in your browser cookies after a successful Notion login)
you can run it directly with:
$ python notioncli.py
or
build it into an executable with:
pyinstaller --onefile notioncli.py
and then cp the binary from the ./dist folder to somewhere in your path
usage: notioncli [-h] [--env [ENV]] [--list [LIST]] [--add ADD]
[--remove REMOVE] [--check CHECK] [--uncheck UNCHECK]
A Notion.so CLI focused on simple task management
optional arguments:
-h, --help show this help message and exit
--env [ENV] Print current relevant environment variables
--list [LIST] List tasks
--add ADD Usage: --add [str] Add a new task
--remove REMOVE Usage: --remove [n or 'n,n,n' Remove task n or tasks 'n,n,n' from the task list
--check CHECK Usage: --check [n or 'n,n,n'] check off task n or tasks 'n,n,n'
--uncheck UNCHECK Usage: --uncheck [n or 'n,n,n'] uncheck task n or tasks 'n,n,n'
- The pyinstaller packager does not work with conda/miniconda
- PY3.5 tested
- I think it needs to be faster, I have considered rewriting in go; not sure how much of the delay is related to runtime (pyinstaller packaging efficiency) vs network/Notion 'API' delays
- Multiple pages, one per project