Skip to content

Repository files navigation

python Decoractor
Documentation Status

An OSS that has something to do with decorators in python

✨ Features

  • Time related decorators
  • Debugging decorators
  • Custom cli input decorators

🔨 Install

To install, run the following command.

$ pip install python-deco

📦 Modules

  • Info: Decorators that provide information about the function.
  • Debug: Decorators that help debug the function.
  • CLI: Decorators that uses variables defined in a [yaml/json] file as function arugments.
  • Fun: Decorators just for FUN!

📚 Usage

A quick usage example.

@timeit

from pyDeco.dev import inactive
from pyDeco.time import timeit

@timeit
def func():
    # do something
    return 1
2023-02-17 00:05:09,721 [INFO ] Function func() took 2.0120s.

🚧 TODO

  • Update docs
  • Refactor code
  • Flowchart Module

credits

https://bytepawn.com/python-decorators-for-data-scientists.html

About

An OSS that has something to do with decorators in python

Resources

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages