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.
- Each module can have a separate TOML file.
- Configurations in TOML file is cached on memory without continuing to read.
Usage
-
Install todolog
pip install todolog
-
Specify the name of the configuration file to be used for todo logging in
pyproject.toml
(pyproject.toml
must be under the source root).# 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 decorator 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.3.tar.gz
(7.4 kB
view hashes)