TODO extractor from text file
Python script for extracting TODO notes from text file.
List can be grouped into sections and can be summarized with stats.
Installation
$ pip install todo-extract
Requirements
The script requires Python3 installed, no other dependencies.
Usage
$ todo-extract --help
usage: todo-extract [-h] [-s] [-c] file_name
Extract todo items from markdown file
positional arguments:
file_name markdown file path
optional arguments:
-h, --help show this help message and exit
-s, --stats display stats
-c, --chapters display items grouped by important/not important and done/not done
Examples
extraction of bare list, no stats
$ todo-extract file.md
output:
- buy a bag of chips
- buy a bag of cookies
- buy apples
- buy oranges
- buy bananas
- buy pears
- buy plums
- buy avocados
- buy water
- [!] buy bread
extraction of list summarized with stats
$ todo-extract --stats file.md
- buy a bag of chips
- buy a bag of cookies
- buy apples
- buy oranges
- buy bananas
- buy pears
- buy plums
- buy avocados
- buy water
- [!] buy bread
stats:
-------
10 all items (done or not done)
3 not done normal items (42% of all normal items are not done)
4 done normal items (57% of all normal items are done)
2 important items todo (66% of all important items are not done)
1 important items done (33% of all important items are done)
extraction of list divided into sections/chapters
$ todo-extract --chapters file.md
==== Done normal items: 4 ====
- buy oranges
- buy bananas
- buy pears
- buy plums
==== Important done items: 1 ====
- [!] buy bread
==== Normal todo items: 3 ====
- buy a bag of chips
- buy a bag of cookies
- buy apples
==== Important todo items: 2 ====
- buy avocados
- buy water
License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
todo_extract-0.2.5.tar.gz
(5.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file todo_extract-0.2.5.tar.gz.
File metadata
- Download URL: todo_extract-0.2.5.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c089474f8d98bcfd90e6e58e8011ccc38e9e8ebd33cea88b262f419f592de65
|
|
| MD5 |
398f6fadb33bf50af28f31d789cbe410
|
|
| BLAKE2b-256 |
b6ee22b1bbcd540821cf05f5d74471ff58185ba59749a421a001e34da17d5926
|
File details
Details for the file todo_extract-0.2.5-py3-none-any.whl.
File metadata
- Download URL: todo_extract-0.2.5-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
poetry/1.2.2 CPython/3.10.8 Darwin/21.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06bb7506dd1989c6563cff8baceda83f55cb13edc2237a3cc1c215618a5e49e2
|
|
| MD5 |
e0b1e8218e57718c548670a6dc2a9df1
|
|
| BLAKE2b-256 |
d82623e4bb6875caedfe7d9341a9283e93235921b53695e82d6cbf8be00efdf3
|