HowFast APM for Python servers
Light instrumentation of your Python server for reporting performance data to HowFast APM.
Install
To install / update the module:
pip install howfast-apm[flask]
Usage
Only the Flask middleware is currently available.
from howfast_apm import HowFastFlaskMiddleware
# Create your Flask app
app = Flask(__name__, ...)
# Instanciate all your other middlewares first
# Setup the APM middleware last, so that it can track the time spent inside other middlewares
HowFastFlaskMiddleware(app, app_id=HOWFAST_APM_DSN)
Configuration
You can configure the APM through environment variables. If they are defined, those variables will be used. Parameters passed to the HowFastFlaskMiddleware constructor take precedence over environment variables.
Only one variable is available for now:
HOWFAST_APM_DSN: The DSN (application identifier) that you can find on your APM dashboard. Can also be passed to the constructor as app_id.
If the environment variable is defined you can then use:
# Install the middleware
HowFastFlaskMiddleware(app)
You can also choose to exclude some URLs from reporting:
# Do not report performance data for some URLs
HowFastFlaskMiddleware(
app,
endpoints_blacklist=[
'/some/internal/url/',
# You can also use patterns accepted by Python's `fnmatch.fnmatch`, shell-like:
'/admin/*',
'/jobs/*/results',
'/endpoint/?', # will blacklist /endpoint and /endpoint/
],
)
Metadata
Release files for howfast-apm 0.8.0
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 | |
|---|---|---|---|---|
| howfast_apm-0.8.0.tar.gz | 9.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| howfast_apm-0.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / howfast_apm-0.8.0.tar.gz
| Download URL | howfast_apm-0.8.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d517d45b6187ebf4c6ec573ab6f703796173a5af5f354baabce9a1440b8f313c
|
|
BLAKE2b-256 checksum How to use checksums |
7f4acdf83fdcd6a640db9652250288bf21424f9733d9b898d4915ae82703c6f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Darwin/23.5.0
|
Release files / howfast_apm-0.8.0-py3-none-any.whl
| Download URL | howfast_apm-0.8.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8039756c56548e3806bdfbf3176000a15392ada457ef740f8fffaa7a03803239
|
|
BLAKE2b-256 checksum How to use checksums |
e8723c17bd1400138eeb941d0415721e67acc79d82331fdb34df80b8b4af9a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.7 Darwin/23.5.0
|
Security for howfast-apm 0.8.0
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.