Skip to main content

BVR: Log like a Beaver

Project description

bvr

BVR: Log like a Beaver

Install

pip install bvr

@bvr_start

  • Logs when a method is starting

Example:

@bvr_start
def example_one():
    print("hello")
    return 3

example_one()

# STARTED | FUNCTION: example_one | ARGS: () | KWARGS: {} 

Example with ARGS:

@bvr_start
def example_two(msg, value):
    print(msg)
    return value

example_two("Hi", 4)

# STARTED | FUNCTION: example_two | ARGS: ('Hi', 4) | KWARGS: {}

Example with KWARGS

@bvr_start
def example_three(msg, value):
    print(msg)
    return value

example_two(msg="Hi", value=4)

# STARTED | FUNCTION: example_two | ARGS: () | KWARGS: {'msg': 'Hi', 'value': 4} 

bvr_end

Logs after the function is called

bvr_start_end

Utilizes

TODO:

  • Docs Badge passing
  • test passing
  • build passing
  • requirements up to date and passing
  • package info pypi
  • test pypi
  • supported python versions
  • cocverage info
  • travis ci info
  • pylint score 10/10
  • apply to the class level

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.3.tar.gz (4.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page