Skip to main content

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

aioprom-1.0.8.tar.gz (19.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aioprom-1.0.8-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file aioprom-1.0.8.tar.gz.

File metadata

  • Download URL: aioprom-1.0.8.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioprom-1.0.8.tar.gz
Algorithm Hash digest
SHA256 d5d32e4b297139a1655ac25e0226478ffacc8b9d8a9d057b2fd73d83d0408e19
MD5 8c96852136b35cd4cefdc5e2e129eee8
BLAKE2b-256 3787d9c5acaea9fee5b146edf57ebcc7e141b09f59e304f21d4d582576b3b04b

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioprom-1.0.8.tar.gz:

Publisher: release.yml on CheesiestMaster/aioprom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aioprom-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: aioprom-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for aioprom-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 bcc1610cb8a5db1af52bade3e8fbb6ad508a4c3f9c7cca8bb310a054441d9eb5
MD5 5e3ab14e429758b894bc43a0c996dec6
BLAKE2b-256 27e0a5155e132e3fb3ff3f78fbfc15d8fd87b8edd7cc31e926fea008d8347c26

See more details on using hashes here.

Provenance

The following attestation bundles were made for aioprom-1.0.8-py3-none-any.whl:

Publisher: release.yml on CheesiestMaster/aioprom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page