Server Timing interaction for aiohttp
Project description
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 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.
from aiohttp import web
from aioservertiming import server_timing_mware
app = web.Applicalion(
middlewares = [
server_timing_mware
])
Decorator
Context manager
Links
MDN documentation for Server-Timing
This library on PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aioservertiming-0.0.1a1.tar.gz.
File metadata
- Download URL: aioservertiming-0.0.1a1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a711193c6b415abc30e329e06088a7b1f4e93df30bc467be2f1ffdfe6e3b21bf
|
|
| MD5 |
50ec753bde1e06b58ffa3c762412b983
|
|
| BLAKE2b-256 |
e70ffab9a9ca96585ded4acba5e8124c128470f03edf4b57771d5fa86e247418
|
File details
Details for the file aioservertiming-0.0.1a1-py3-none-any.whl.
File metadata
- Download URL: aioservertiming-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15481ac880e79debc39dc98873c2e21010c6234fa3b709a5c7eb8206b7f5097
|
|
| MD5 |
3733f37f19d77e75659c35ee47c2e21f
|
|
| BLAKE2b-256 |
a8362d691159cbef915dd6d1b1f9556d3d3847ff2215e93ba180d115e55f622c
|