BVR: Log like a Beaver
Project description
bvr
BVR: Log like a Beaver
Install
pip install bvr
bvr decorators
- 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
bvr_start
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
bvr_end
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: {}
bvr_start_end
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: {}
@bvr_rest_before
log and sleep before a method starts
Coming Soon!
@bvr_rest_after
log and sleep after a method ends
Coming Soon!
@bvr_time
log the amount of time a method takes
Coming Soon!
@bvr_try
log and catch an exception
Coming Soon!
@bvr_repeat
log and repeat a method n times
Coming Soon!
@bvr_compose
compose multiple other bvr decorators on a single method
Coming Soon!
Tech Notes
- Langauges
- Python
- Bash
- Markdown
- Quality
- PyTest
- Coverage
- Pylint
- Automation
- Github Actions
- Travis CI
- Hosting
- Test PyPi
- Prod Pypi
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
bvr-0.0.6.tar.gz
(6.1 kB
view details)
File details
Details for the file bvr-0.0.6.tar.gz
.
File metadata
- Download URL: bvr-0.0.6.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a7e62525d8ee07299f033b9b328eab6c7303b2f7b2af522dc42f61042c551c5 |
|
MD5 | 318ae49b514c2b585b74432ec957f8bf |
|
BLAKE2b-256 | ac7d261eb537f8ca2665e1b41f869b87bc6aa3d064d70c01dd4986445a177bb2 |