SwanMetrics
SWAN Metrics extension to add metrics for specific user actions, such as opening editors.
Requirements
- jupyter_server
- jupyter_events
Install
pip install swanmetrics
Observations
- The
/metricsroute was added to direct thePrometheusMetricsHandlerto the root url, so that Prometheus always scrapes the same endpoint, without having to access the/user/<username>/metricsendpoint every time. Otherwise, the username would have to be parsed each time Prometheus would scrape the metrics from the user pod.
Metadata
Release files for swanmetrics 1.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| swanmetrics-1.0.9.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| swanmetrics-1.0.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / swanmetrics-1.0.9.tar.gz
| Download URL | swanmetrics-1.0.9.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b06d8bb005bca9820c9c0bc307429d222a11141a5860ec1df426e96311f0a8a1
|
|
BLAKE2b-256 checksum How to use checksums |
ce4ad47d637727b44e152fca1817f109acd6176d35735577e194e3daedbc77d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency logRelease files / swanmetrics-1.0.9-py3-none-any.whl
| Download URL | swanmetrics-1.0.9-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9a8273a41915775bceab8318e77b2eade73915d8accdc5172f8e2bf8bef178b
|
|
BLAKE2b-256 checksum How to use checksums |
7267b70b9350d507020ab0606b87ce7460137b285da2cb162c39471d2c22b30e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 5, 2026.
Transparency log