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.4.tar.gz (18.7 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.4-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aioprom-1.0.4.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aioprom-1.0.4.tar.gz
Algorithm Hash digest
SHA256 fd35dabf11bbe6ac9bd638dd50d0f8c0749a6ac3915e0cf0511763cc1694b655
MD5 6f52b424b26ae4174b9283906cffbc36
BLAKE2b-256 75a116cbbb1302768eba068035579b04990f76e66f2ae54371f3653f5eea6395

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aioprom-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for aioprom-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9bc83bfc2ef9582c5f7baa44c7070ea34edc88e34acfe51d441220127d71fae7
MD5 7f8ad7aff20adc50e3387c6401fa2224
BLAKE2b-256 98d4bc958f6e5e9195fb01c2c1aa0c0bf7282dde91e7fb4ecdf889558066aeb0

See more details on using hashes here.

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