Prettier formatting for ?_trace=1 traces
Project description
datasette-pretty-traces
Prettier formatting for ?_trace=1
traces
Installation
Install this plugin in the same environment as Datasette.
$ datasette install datasette-pretty-traces
Usage
Once installed, run Datasette using --setting trace_debug 1
:
datasette fixtures.db --setting trace_debug 1
Then navigate to any page and add ?_trace=
to the URL:
http://localhost:8001/?_trace=1
The plugin will scroll you down the page to the visualized trace information.
Demo
You can try out the demo here:
- /?_trace=1 tracing the homepage
- /github/commits?_trace=1 tracing a table page
Screenshot
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-pretty-traces
python3 -mvenv venv
source venv/bin/activate
Or if you are using pipenv
:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
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
Built Distribution
Close
Hashes for datasette_pretty_traces-0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 202ed64476fbc341d999b850e0cb3bce54768be3180aa1f2e11d8ae91d5450d8 |
|
MD5 | 5291dc6b1d07b528ee5c6100edbad062 |
|
BLAKE2b-256 | a2a10c976a00538a34bbbcef816d7e0b5e14690d126a818d9da6107857d9c0ec |
Close
Hashes for datasette_pretty_traces-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1783af75ce14618467f9c2516802aa2112c6c10b80a3e1ac1907efc8de5b0cf |
|
MD5 | 47cad22fe7309f3697853c6fdae49d2a |
|
BLAKE2b-256 | e039849c9ad0b77f286bfeb16508ddc080f6d4bd87d740a499a0c4c5a36c13df |