BVR: Log like a Beaver
pip install bvr
- bvr_start: log when a method starts
- bvr_end: log when a method ends
- bvr_start_end: log when a method starts and ends
- bvr_rest_before: log and sleep before a method starts
- bvr_rest_after: log and sleep after a method ends
- bvr_time: log the amount of time a method takes
- bvr_try: log and catch an exception
- bvr_repeat: log and repeat a method
- bvr_compose: compose multiple other bvr decorators on a single method
log when a method starts
example:
from bvr import bvr_start
@bvr_start
def example_one():
print("hello")
return 3
example_one()
output:
STARTED | FUNCTION: example_one | ARGS: () | KWARGS: {}
hello
log when a method ends
example:
from bvr import bvr_end
@bvr_end
def example_one():
print("hello")
return 3
example_one()
output:
hello
ENDED | FUNCTION: example_one | ARGS: () | KWARGS: {}
log when a method starts and ends
example:
from bvr import bvr_start_end
@bvr_start_end
def example_one():
print("hello")
return 3
example_one()
output:
STARTED | FUNCTION: example_one | ARGS: () | KWARGS: {}
hello
ENDED | FUNCTION: example_one | ARGS: () | KWARGS: {}
log and sleep before a method starts
Coming Soon!
log and sleep after a method ends
Coming Soon!
log the amount of time a method takes
Coming Soon!
log and catch an exception
Coming Soon!
log and repeat a method n times
Coming Soon!
compose multiple other bvr decorators on a single method
Coming Soon!
- Langauges
- Python
- Bash
- Markdown
- Quality
- PyTest
- Coverage
- Pylint
- Automation
- Github Actions
- Travis CI
- Hosting
- Test PyPi
- Prod Pypi