pyramid_scales
The excellent scales library to collect in-process metrics (see Coda Hale’s CodeConf talk “Metrics everywhere” among many others for reasons why you might want use it) comes with a flask-based HTTP server that allows viewing the collected measurements and dumping them as JSON. But if you already are in a web application using pyramid, there’s no real need to spin up yet another thread, open another port etc. to do this.
Instead, you can simply include pyramid_scales like so:
import pyramid.config
config = pyramid.config.Configurator()
# rest of your configuration goes here
config.include('pyramid_scales')
This registeres a view below the URL /scales/ where you can view your application’s metrics. If you need more control, register the pyramid_scales.scales_stats view yourself in whichever way you need.
This package is compatible with Python version 2.7 (scales itself does not support Python3 yet, so there’s no point here).
Developing pyramid_scales
- Author:
Wolfgang Schnerring <wosc@wosc.de>
- PyPI page:
- Issues:
- Source code:
Change log for pyramid_scales
1.1.1 (2018-11-07)
Make current-setuptools compatible
1.1 (2015-02-03)
Make Python3 compatible (patch by Hynek Schlawack)
1.0 (2013-11-06)
initial release
Metadata
Release files for pyramid_scales 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyramid_scales-1.1.1.tar.gz | 4.8 kB | Without provenance | Details for pyramid_scales-1.1.1.tar.gz |
Release files / pyramid_scales-1.1.1.tar.gz
| Download URL | pyramid_scales-1.1.1.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf931ccae7b4a7b21dfb9af34ed0a4e642210aa723a1716a77120c2c88940a9c
|
|
BLAKE2b-256 checksum How to use checksums |
067f8dadc53d11a64f86d6af56502a0f8d2a937332e76e3593f1da3acf01035f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.8
|
Security for pyramid_scales 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.