Skip to main content

debugging interface module

Project description

| --- | :---: | :---: | :---: | :---: | :---: |
| Master | [![Build Status](]( | [![codecov](]( | [![Requirements Status](]( | [![GitHub issues](]( | [![GitHub pull-requests](]( |
| Develop | [![Build Status](]( | [![codecov](]( | [![Requirements Status](](

# Debug Interface - DBI

[![PyPI Version](](
[![GitHub release](](
[![GitHub license](](
[![Github all releases](](

<img src="docs/dbi_logo.png" alt="dbi logo" width="200"/>

## Installation
### Install via pip
Install as user (recommended):

$ pip3 install dbi --user

Install as root:

$ sudo pip3 install dbi

### Install from source
Clone this repository:

$ git clone

Install requirements:

$ cd dbi
$ pip3 install -r requirements.txt --user

## Script Functionality
### User-Written Verbosity-Dependant Debug Messages
- information is only show when A and B are satisfied
- debugging is active
- the threshold verbosity is reached or exceeded (this threshold is specified on a per-message basis)
- verbosity can be
- set in advanced
- **modified on-the-fly**
- multiple **external functions** can be executed in a single-line
- users can write their own debugging messages on the status of each function's progress
- console output is colour-coded (based on verbosity levels)

## What is the purpose?
My console had become populated by indecernable walls of debugging text, all thanks to riddling my scripts with lines like `print(str(var),var)` for debugging.
So I created a module to maintain my sanity and save my time.

## Examples
Initial config:
from dbi import Dbi
dbi = Dbi(3,True)
dpm = dbi.print_message
Generic example:
[IN ]: dpm(2,"message with","sub-message")
[OUT]: [3][2]<=[2018-12-10 01:54:59.845995] message with | sub-message


[![forthebadge made-with-python](](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

qwerty-1.2.1-py3-none-any.whl (16.7 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