This release is a pre-release and may not be stable for production use.
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
Metadata
Release files for aioservertiming 0.0.1a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aioservertiming-0.0.1a1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aioservertiming-0.0.1a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.7 kB
Release files / aioservertiming-0.0.1a1.tar.gz
| Download URL | aioservertiming-0.0.1a1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a711193c6b415abc30e329e06088a7b1f4e93df30bc467be2f1ffdfe6e3b21bf
|
|
BLAKE2b-256 checksum How to use checksums |
e70ffab9a9ca96585ded4acba5e8124c128470f03edf4b57771d5fa86e247418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / aioservertiming-0.0.1a1-py3-none-any.whl
| Download URL | aioservertiming-0.0.1a1-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d15481ac880e79debc39dc98873c2e21010c6234fa3b709a5c7eb8206b7f5097
|
|
BLAKE2b-256 checksum How to use checksums |
a8362d691159cbef915dd6d1b1f9556d3d3847ff2215e93ba180d115e55f622c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|