Skip to main content

BWI-lib

python client for BWI interactions

Usage

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:
    bwi.logger.info('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
bwi.metrics.inc('income', total_paid)

Error-handling

# report any unknown exception to the bwi handler
try:
    # Your business-oriented code goes here
except Exception as err:
    bwi.handler.catch(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
step.success()

# other scenario, where thing go bad
step.failed()

Metadata

Release files for bwi 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bwi 0.1.2
File Size Uploaded Provenance Actions
bwi-0.1.2.tar.gz 3.6 kB Without provenance Details for bwi-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bwi 0.1.2
File Interpreter ABI Platform Actions
bwi-0.1.2-py3-none-any.whl Python 3 none any Details for bwi-0.1.2-py3-none-any.whl

Total release size: 8.3 kB

Release files / bwi-0.1.2.tar.gz

Download URL bwi-0.1.2.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
547dcdb83bd0fff68658d0ae1b6a8dcf4b72af1ab2c8f675b1e579fb6be5899d
BLAKE2b-256 checksum
How to use checksums
fe2cafdd0349f2e54ee6a60908d2569332eb03fa5c1d28339ea39e1779c85781
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

Release files / bwi-0.1.2-py3-none-any.whl

Download URL bwi-0.1.2-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9395ae4b2b8ca3e8bb64cd4b9d2b97f7db7710320186dbf018c3237f5d768109
BLAKE2b-256 checksum
How to use checksums
b2d397d59e9174a681e18b877232c4e17c4d776fb2326b1ccffebcd15ba7e07b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.2

Security for bwi 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page