Skip to main content

BVR: Log like a Beaver

Project description

bvr

BVR: Log like a Beaver

made-with-python PyPI version GitHub

Install

pip install bvr

bvr decorators

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.

Files for bvr, version 0.0.6
Filename, size File type Python version Upload date Hashes
Filename, size bvr-0.0.6.tar.gz (6.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page