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, 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

datasette_pretty_traces-0.6.tar.gz (8.6 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.6-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: datasette_pretty_traces-0.6.tar.gz
  • Upload date:
  • Size: 8.6 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.6.tar.gz
Algorithm Hash digest
SHA256 a7d286c081e859f02937021c7393417341e5b0879410858150b429e1a056fe04
MD5 59b21096eb0c97796d06abb5b6a627b6
BLAKE2b-256 e9003ffab6a15d694494349188fe45a4756005453f4c3a6f5f50373e20fd4a23

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_pretty_traces-0.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_pretty_traces-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f023067a0d3b717e29bc88794110a679a8f582559b410d1ffdfdee7123963441
MD5 262435b5e4e4e9523c1f9451dadd15e1
BLAKE2b-256 90330c4b6a7a1ca018c85cd15ce0518951b939bb53c1aa2a5759702ac4ab2552

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_pretty_traces-0.6-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