django-perf-0.2.0
توضیحات
A simple Django Middleware for sending request data to Perf.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-perf-0.2.0 |
| نام | django-perf |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jonathan Grana |
| ایمیل نویسنده | john@perf.sh |
| آدرس صفحه اصلی | https://github.com/perflabs/django-perf |
| آدرس اینترنتی | https://pypi.org/project/django-perf/ |
| مجوز | GPL-3.0 |
|PyPI version| |circle.ci builds|
Perf Django Agent
=================
``perf`` is a middleware that will record timing and status codes
of the connections in the Django framework and send the data to Perf. We
then run analytics on that data to generate metrics and alerts.
Installation
------------
- Easily install Perf via pip
.. code-block:: bash
pip install django-perf
- Add Perf configuration to your settings
.. code-block:: python
PERF_CONFIG = {
"api_key": "PERF_API_KEY"
}
- Add Perf to your list of installed apps and middleware classes
.. code-block:: python
INSTALLED_APPS = (
'perf',
...
)
MIDDLEWARE_CLASSES = (
'perf.middleware.PerfMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
...
)
.. |PyPI version| image:: https://badge.fury.io/py/django-perf.svg
:target: https://badge.fury.io/py/django-perf
.. |circle.ci builds| image:: https://circleci.com/gh/perflabs/django-perf/tree/master.svg?style=shield&circle-token=21f056185e48e4d08cc62909f972ae235affacd8
:target: https://circleci.com/gh/perflabs/django-perf
نحوه نصب
نصب پکیج whl django-perf-0.2.0:
pip install django-perf-0.2.0.whl
نصب پکیج tar.gz django-perf-0.2.0:
pip install django-perf-0.2.0.tar.gz