htmlvis
HTML visualization for Python
Helps you visualize your app's HTTP traffic using sequence diagrams generated by the amazing PlantUML.
- Free software: MIT license
- Documentation: https://htmlvis.readthedocs.io
Features
- Support for Requests
- Formatting
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.