datasette-pretty-traces


Namedatasette-pretty-traces JSON
Version 0.5 PyPI version JSON
download
home_pagehttps://github.com/simonw/datasette-pretty-traces
SummaryPrettier formatting for ?_trace=1 traces
upload_time2024-08-21 19:32:23
maintainerNone
docs_urlNone
authorSimon Willison
requires_python>=3.6
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # datasette-pretty-traces

[![PyPI](https://img.shields.io/pypi/v/datasette-pretty-traces.svg)](https://pypi.org/project/datasette-pretty-traces/)
[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-pretty-traces?include_prereleases&label=changelog)](https://github.com/simonw/datasette-pretty-traces/releases)
[![Tests](https://github.com/simonw/datasette-pretty-traces/workflows/Test/badge.svg)](https://github.com/simonw/datasette-pretty-traces/actions?query=workflow%3ATest)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-pretty-traces/blob/main/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:

- [/?_trace=1](https://latest-with-plugins.datasette.io/?_trace=1) tracing the homepage
- [/github/commits?_trace=1](https://latest-with-plugins.datasette.io/github/commits?_trace=1) tracing a table page

## Screenshot

![Screenshot showing the visualization produced by the plugin](https://user-images.githubusercontent.com/9599/145883732-a53accdd-5feb-4629-94cd-f73407c7943d.png)

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/simonw/datasette-pretty-traces",
    "name": "datasette-pretty-traces",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Simon Willison",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/a2/a1/0c976a00538a34bbbcef816d7e0b5e14690d126a818d9da6107857d9c0ec/datasette_pretty_traces-0.5.tar.gz",
    "platform": null,
    "description": "# datasette-pretty-traces\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-pretty-traces.svg)](https://pypi.org/project/datasette-pretty-traces/)\n[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-pretty-traces?include_prereleases&label=changelog)](https://github.com/simonw/datasette-pretty-traces/releases)\n[![Tests](https://github.com/simonw/datasette-pretty-traces/workflows/Test/badge.svg)](https://github.com/simonw/datasette-pretty-traces/actions?query=workflow%3ATest)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-pretty-traces/blob/main/LICENSE)\n\nPrettier formatting for `?_trace=1` traces\n\n## Installation\n\nInstall this plugin in the same environment as Datasette.\n\n    $ datasette install datasette-pretty-traces\n\n## Usage\n\nOnce installed, run Datasette using `--setting trace_debug 1`:\n\n    datasette fixtures.db --setting trace_debug 1\n\nThen navigate to any page and add `?_trace=` to the URL:\n\n    http://localhost:8001/?_trace=1\n\nThe plugin will scroll you down the page to the visualized trace information.\n\n## Demo\n\nYou can try out the demo here:\n\n- [/?_trace=1](https://latest-with-plugins.datasette.io/?_trace=1) tracing the homepage\n- [/github/commits?_trace=1](https://latest-with-plugins.datasette.io/github/commits?_trace=1) tracing a table page\n\n## Screenshot\n\n![Screenshot showing the visualization produced by the plugin](https://user-images.githubusercontent.com/9599/145883732-a53accdd-5feb-4629-94cd-f73407c7943d.png)\n\n## Development\n\nTo set up this plugin locally, first checkout the code. Then create a new virtual environment:\n\n    cd datasette-pretty-traces\n    python3 -mvenv venv\n    source venv/bin/activate\n\nOr if you are using `pipenv`:\n\n    pipenv shell\n\nNow install the dependencies and test dependencies:\n\n    pip install -e '.[test]'\n\nTo run the tests:\n\n    pytest\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Prettier formatting for ?_trace=1 traces",
    "version": "0.5",
    "project_urls": {
        "CI": "https://github.com/simonw/datasette-pretty-traces/actions",
        "Changelog": "https://github.com/simonw/datasette-pretty-traces/releases",
        "Homepage": "https://github.com/simonw/datasette-pretty-traces",
        "Issues": "https://github.com/simonw/datasette-pretty-traces/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e039849c9ad0b77f286bfeb16508ddc080f6d4bd87d740a499a0c4c5a36c13df",
                "md5": "47cad22fe7309f3697853c6fdae49d2a",
                "sha256": "f1783af75ce14618467f9c2516802aa2112c6c10b80a3e1ac1907efc8de5b0cf"
            },
            "downloads": -1,
            "filename": "datasette_pretty_traces-0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "47cad22fe7309f3697853c6fdae49d2a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 8566,
            "upload_time": "2024-08-21T19:32:21",
            "upload_time_iso_8601": "2024-08-21T19:32:21.933375Z",
            "url": "https://files.pythonhosted.org/packages/e0/39/849c9ad0b77f286bfeb16508ddc080f6d4bd87d740a499a0c4c5a36c13df/datasette_pretty_traces-0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2a10c976a00538a34bbbcef816d7e0b5e14690d126a818d9da6107857d9c0ec",
                "md5": "5291dc6b1d07b528ee5c6100edbad062",
                "sha256": "202ed64476fbc341d999b850e0cb3bce54768be3180aa1f2e11d8ae91d5450d8"
            },
            "downloads": -1,
            "filename": "datasette_pretty_traces-0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "5291dc6b1d07b528ee5c6100edbad062",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 8504,
            "upload_time": "2024-08-21T19:32:23",
            "upload_time_iso_8601": "2024-08-21T19:32:23.270263Z",
            "url": "https://files.pythonhosted.org/packages/a2/a1/0c976a00538a34bbbcef816d7e0b5e14690d126a818d9da6107857d9c0ec/datasette_pretty_traces-0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-21 19:32:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "simonw",
    "github_project": "datasette-pretty-traces",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "datasette-pretty-traces"
}
        
Elapsed time: 0.31435s