datasette-pyinstrument-0.1
توضیحات
Use pyinstrument to analyze Datasette page performance
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | datasette-pyinstrument-0.1 |
| نام | datasette-pyinstrument |
| نسخه کتابخانه | 0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Simon Willison |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/simonw/datasette-pyinstrument |
| آدرس اینترنتی | https://pypi.org/project/datasette-pyinstrument/ |
| مجوز | Apache License, Version 2.0 |
# datasette-pyinstrument
[](https://pypi.org/project/datasette-pyinstrument/)
[](https://github.com/simonw/datasette-pyinstrument/releases)
[](https://github.com/simonw/datasette-pyinstrument/actions?query=workflow%3ATest)
[](https://github.com/simonw/datasette-pyinstrument/blob/main/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
نیازمندی
| مقدار | نام |
|---|---|
| - | datasette |
| - | pyinstrument |
| - | pytest |
| - | pytest-asyncio |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl datasette-pyinstrument-0.1:
pip install datasette-pyinstrument-0.1.whl
نصب پکیج tar.gz datasette-pyinstrument-0.1:
pip install datasette-pyinstrument-0.1.tar.gz