aioservertiming-0.0.1a1
توضیحات
Server Timing interaction for aiohttp
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | aioservertiming-0.0.1a1 |
| نام | aioservertiming |
| نسخه کتابخانه | 0.0.1a1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | jorektheglitch |
| ایمیل نویسنده | jorektheglitch@yandex.ru |
| آدرس صفحه اصلی | https://github.com/jorektheglitch/aioservertiming |
| آدرس اینترنتی | https://pypi.org/project/aioservertiming/ |
| مجوز | - |
# aioservertiming
The *Server-Timing* header communicates one or more metrics and descriptions for a given request-response cycle. It is used to surface any backend server timing metrics (e.g. database read/write, CPU time, file system access, etc.) in the developer tools in the user's browser or in the [PerformanceServerTiming](https://developer.mozilla.org/en-US/docs/Web/API/PerformanceServerTiming) interface. *aioservertiming* provides conventient functions to work with it from aiohttp.
## Installation
Installation process as simple as:
$ pip install aioservertiming
## Usage
First we need to set a middleware to app.
```python3
from aiohttp import web
from aioservertiming import server_timing_mware
app = web.Applicalion(
middlewares = [
server_timing_mware
])
```
### Decorator
```python3
```
### Context manager
```python3
```
## Links
[MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Server-Timing) for Server-Timing
This library on [PyPI](https://pypi.org/project/aioservertiming/)
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl aioservertiming-0.0.1a1:
pip install aioservertiming-0.0.1a1.whl
نصب پکیج tar.gz aioservertiming-0.0.1a1:
pip install aioservertiming-0.0.1a1.tar.gz