/htmlvis

HTML visualization for Python

Primary LanguagePythonMIT LicenseMIT

htmlvis

Build Status https://coveralls.io/repos/github/qdamian/htmlvis/badge.svg?branch=master Code issues Documentation Status Code Health Updates Pypi Status

HTML visualization for Python

logo.png

Helps you visualize your app's HTTP traffic using sequence diagrams generated by the amazing PlantUML.

Features

Usage

Capturing packets with Requests

import htmlvis
import requests

requests_sniffer = htmlvis.RequestsSniffer(client_name="browser")
requests.get('https://foo.com/bar', hooks={'response': requests_sniffer})

Capturing packets with Bottle

import htmlvis
import bottle

bottle_sniffer = htmlvis.BottleSniffer(server_name="webserver")
bottle.install(bottle_sniffer)

Generating a sequence diagram

htmlvis.seqdiag('sample.html', sniffers)

Sample use case

We're building an activity_recommendations_service.py.

Credits

The initial version of this package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.