Minimal asyncio HTTP server exposing Prometheus metrics
Project description
aioprom
Minimal asyncio HTTP server that exposes Prometheus metrics.
Install
pip install aioprom
Usage
from aioprom import start_server
# See package docstrings for configuration.
Development
Enable repo git hooks (optional; auto-bumps patch VERSION in aioprom/aioprom.py when unchanged vs last commit):
git config core.hooksPath .githooks
Build and check the distribution:
pip install -e ".[dev]"
pytest -q
python -m build
twine check dist/*
Debug a failing wheel build with verbose logs (uses .venv/bin/python, pip wheel -vv, and --no-build-isolation so setuptools runs in that env, not an ephemeral build env). make wheel-debug runs make clean-build first so a previous build/ tree cannot trigger [Errno 17] File exists on aioprom-*.dist-info.
python3 -m venv .venv && .venv/bin/python -m pip install -U pip
make wheel-debug
# or only: make clean-build
The package targets Python 3.9+ (requires-python / build tooling: setuptools>=77, [project].license-files). prometheus-client is required at ≥ 0.9.0.
CI on push to main runs via .github/workflows/release.yml.
Upload to PyPI (use API tokens, not your password):
twine upload dist/*
TestPyPI:
twine upload --repository testpypi dist/*
Project details
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 aioprom-1.0.9.tar.gz.
File metadata
- Download URL: aioprom-1.0.9.tar.gz
- Upload date:
- Size: 19.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d05e50b2a8acf12d942dea05be68b57248bb9a92f55a8312641986d2de9297be
|
|
| MD5 |
7f549ae05d04ac3df948209efd0fd2cc
|
|
| BLAKE2b-256 |
2bf43a3f44fdf5bd51f82e219f2cce2ee970373293dd45bdc7a114225b0de654
|
Provenance
The following attestation bundles were made for aioprom-1.0.9.tar.gz:
Publisher:
release.yml on CheesiestMaster/aioprom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioprom-1.0.9.tar.gz -
Subject digest:
d05e50b2a8acf12d942dea05be68b57248bb9a92f55a8312641986d2de9297be - Sigstore transparency entry: 1660090013
- Sigstore integration time:
-
Permalink:
CheesiestMaster/aioprom@3080c9bc0f5a7212c2d899922d3ed0cc4a941878 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/CheesiestMaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3080c9bc0f5a7212c2d899922d3ed0cc4a941878 -
Trigger Event:
push
-
Statement type:
File details
Details for the file aioprom-1.0.9-py3-none-any.whl.
File metadata
- Download URL: aioprom-1.0.9-py3-none-any.whl
- Upload date:
- Size: 18.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36cdb524d5fe9a6672a0f15ef97f2ef9b1e3db6eaf73705d30182968551272d8
|
|
| MD5 |
8366f2b959072d81974517dbb3b884e0
|
|
| BLAKE2b-256 |
c2d17f43108e543ba45bf6e3f7f94642d999849729fa0f0ecf92c979bb06ec8c
|
Provenance
The following attestation bundles were made for aioprom-1.0.9-py3-none-any.whl:
Publisher:
release.yml on CheesiestMaster/aioprom
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aioprom-1.0.9-py3-none-any.whl -
Subject digest:
36cdb524d5fe9a6672a0f15ef97f2ef9b1e3db6eaf73705d30182968551272d8 - Sigstore transparency entry: 1660090095
- Sigstore integration time:
-
Permalink:
CheesiestMaster/aioprom@3080c9bc0f5a7212c2d899922d3ed0cc4a941878 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/CheesiestMaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3080c9bc0f5a7212c2d899922d3ed0cc4a941878 -
Trigger Event:
push
-
Statement type: