Welcome to utils’s documentation!

Collection of python utils.

Install

pip install git+https://github.com/BkrmDahal/utilspy.git

Utilspy Examples

import time

from utilspy import log, files, decorator

# logger funcation
logs = log.Logger()

logs.log("< started >")
time.sleep(2)
logs.log("running..")
time.sleep(1)
logs.log("</>")


# timeout
@decorator.timeout(5)
def add(x, y):
    return x+y

# other useful utils
files = utils.walk_directory('.')

Indices and tables