Skip to main content

Package to add bwi methods into your project

Project description


python client for BWI interactions


Instantiate a client

import bwi

client = bwi.Client(api_key='xxxxxxxxxxxxxxxx', workflow='shop')

Manipulate your logs

# provide step duration
with client.Step('fetch client information') as bwi:'found client with user id %d', 18)

Metric management

# manipulate metrics
client.Step('validate order')
# Your business-oriented code goes here
# ...
total_paid = 220

# increment the income metric for this step'income', total_paid)


# report any unknown exception to the bwi handler
    # Your business-oriented code goes here
except Exception as err:
    # the error is now available for this specific step

Mark a step as (un)succesful

step = bwi.Step('process order')

# Your business-oriented code goes here

# other scenario, where thing go bad

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

bwi-0.1.2.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

bwi-0.1.2-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

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