Skip to main content

REST API testing tool

Project description

PyPI version License Build Status Code Coverage Documentation Status

Dbgr [read ‘ˌdiːˈbʌɡər’] is a interactive terminal tool to test and debug HTTP APIs. It offers alternative to Postman, Insomnia and other HTTP clients. It is designed for programmers that prefer to use code instead of graphical tools and want full control over their HTTP requests.

Full documentation can be found on Read the Docs


DBGR Basic Usage Example


The easiest way to install DBGR is via PyPi:

$ pip install dbgr
$ dbgr -v

DBGR requires Python >=3.6.

Quick Start

First step when working with DBGR is to create a directory which will DBGR search for requests and environment settings.

You can also download the quickstart from Github.

$ mkdir quickstart
$ cd quickstart

Inside create your default environment file default.ini. For now just place a section header inside:


Now create another file, call it and place create your first request:

from dbgr import request

async def get_example(session):
    await session.get('')

You can check that DBGR registered the request by running dbgr list:

$ dbgr list
 - get_example

To execute it, run dbgr request get_example:

# Output in this example is shortened
> 200 OK
> Request headers:
>  Host:
>  Accept: */*
>  Accept-Encoding: gzip, deflate
>  User-Agent: Python/3.6 aiohttp/3.5.4
< Response headers:
<  Content-Encoding: gzip
<  Accept-Ranges: bytes
<  Cache-Control: max-age=604800
<  Content-Type: text/html; charset=UTF-8
<  Date: Sun, 16 Jun 2019 15:29:41 GMT
<  Last-Modified: Fri, 09 Aug 2013 23:54:35 GMT
<  Content-Length: 606
< Response data (text/html):
<!doctype html>
    <title>Example Domain</title>
    <meta charset="utf-8" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />

    <h1>Example Domain</h1>
    <p>This domain is established to be used for illustrative examples in documents. You may use this
    domain in examples without prior coordination or asking for permission.</p>
    <p><a href="">More information...</a></p>
Result (NoneType)

Read the full documentation on Read the Docs

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

dbgr-1.3.0.tar.gz (24.3 kB view hashes)

Uploaded source

Built Distribution

dbgr-1.3.0-py3-none-any.whl (28.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page