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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file todolog-0.1.3.tar.gz.

File metadata

  • Download URL: todolog-0.1.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for todolog-0.1.3.tar.gz
Algorithm Hash digest
SHA256 996d28aea1197e544324ad5f968b2b34d963ce8290a98e877c810baf9e0f0237
MD5 6cb6260db439d3b09f114041c22a91fa
BLAKE2b-256 f7ebc1b5fc1dfb031bffcfed4c6f738abe2a7da9a18114d09c095131299f74c5

See more details on using hashes here.

File details

Details for the file todolog-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: todolog-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for todolog-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc0d2d32c5acd1ae787417cf1bd0bce0a93582539fc49c30a34a48ff0a9e582
MD5 ccea7e5ba4114bd12cc0267030cfffee
BLAKE2b-256 9ea6cd7846527c3579a948e2f1a724dd7cfe302941f9af1571ae7923d66d4c6e

See more details on using hashes here.

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