Actively Manage ToDos!
Project description
todolog
Actively Manage ToDos!
Motivations
Annotated ToDos are not well managed.
Features
- If there is any ToDo that is past due, logs a message.
- Different log levels can be applied for each ToDo.
- Todo can be actively managed as a separate toml file, not as an annotation.
- Logging can be turned off.
Usage
-
Install todolog
pip install todolog
-
Specify the name of the configuration file to be used for todo logging in
pyproject.toml
.# pyproject.toml [tool.todolog] filename = "todolog.toml" default_log_message = "This is a default log message."
-
Write a configuration for todos in TOML format.
# todolog.toml [key1] responsible = "qu3vipon@gmail.com" message = "This is a log message." due = 2023-12-31 log_level = "WARNING" description = """ This is a description about a todo. It can be written very long, but it is ignored at run time. """
-
Add a decoder to the function that should be managed.
@todo(key="key1") def deprecated_function(): pass
-
(Optional) Logging can be turned off.
@todo(key="key1", ignore=True) def deprecated_function(): pass
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
todolog-0.1.1.tar.gz
(7.3 kB
view hashes)