Skip to main content

Prettier formatting for ?_trace=1 traces

Project description

datasette-pretty-traces

PyPI Changelog Tests License

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:

Screenshot

Screenshot showing the visualization produced by the plugin

Development

To set up this plugin locally, checkout the code and run the tests with uv run pytest:

cd datasette-pretty-traces
uv run pytest

To try your development version of plugin run it like this:

uv run datasette fixtures.db --setting trace_debug 1

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

datasette_pretty_traces-0.7.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_pretty_traces-0.7-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette_pretty_traces-0.7.tar.gz.

File metadata

  • Download URL: datasette_pretty_traces-0.7.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for datasette_pretty_traces-0.7.tar.gz
Algorithm Hash digest
SHA256 922c89a8239fb45661464f1de492c9be685170acd152ba4000e4867637ebfec5
MD5 3b6824a7f16d5c0d04b6f964fa81fe82
BLAKE2b-256 09645da99f369fb6ef3f3d84f034364acc0e8c73100e82ed103601cc87c15c27

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_pretty_traces-0.7.tar.gz:

Publisher: publish.yml on simonw/datasette-pretty-traces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_pretty_traces-0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_pretty_traces-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7ffcc12d83d3e844f5275fdd30ebe7fae93a91100a9aa9c6cb61383c0ec4d7
MD5 009d57bcd14fb8405c6083d3528b1238
BLAKE2b-256 6f44b035a6752ea1105df77589e6a04f4b885590857cbe6b0dfab204248c4bd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_pretty_traces-0.7-py3-none-any.whl:

Publisher: publish.yml on simonw/datasette-pretty-traces

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page