Skip to main content

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

  1. Install todolog

    pip install todolog
    
  2. 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."
    
  3. 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.
    """
    
  4. Add a decorator to the function that should be managed.

    @todo(key="key1")
    def deprecated_function():
       pass
    
  5. (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)

Uploaded Source

Built Distribution

todolog-0.1.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page