Skip to main content

Use pyinstrument to analyze Datasette page performance

Project description

datasette-pyinstrument

PyPI Changelog Tests License

Use pyinstrument to analyze Datasette page performance

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-pyinstrument

Usage

Once installed, adding ?_pyinstrument=1 to any URL within Datasette will replace the output of that page with the pyinstrument profiler results for it.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-pyinstrument
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


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette-pyinstrument-0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

datasette_pyinstrument-0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette-pyinstrument-0.1.tar.gz.

File metadata

  • Download URL: datasette-pyinstrument-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for datasette-pyinstrument-0.1.tar.gz
Algorithm Hash digest
SHA256 d3068afc5888529d0d8fcb952adacd28a9defc782b076f07e8d411ca6c2cf148
MD5 9ea73ab1d5315a7f181e31a24d57630f
BLAKE2b-256 70528e68e873803bdd89527d9eecc3ed5289129f66e89b6c635da2fcda7b254e

See more details on using hashes here.

File details

Details for the file datasette_pyinstrument-0.1-py3-none-any.whl.

File metadata

  • Download URL: datasette_pyinstrument-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for datasette_pyinstrument-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 59830489617ed5ae2b89f343a8ddf2fe4f66123f6044d383af666e7b3589c967
MD5 7bd257e5a8e64b7ee5c2d7cda00095da
BLAKE2b-256 f94bfa2f99ecc523433230633affa15223ad3d87686cc752232b44edf4117d9b

See more details on using hashes here.

Supported by

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