Skip to main content

A zero-contention, thread-safe metrics aggregator for high-performance Python applications.

Project description

Pylight Metrics

Zero-Contention, High-Performance Observability for Python.

pylight-metrics is a thread-safe metrics aggregator designed for high-throughput applications. It uses Thread Local Storage (TLS) to buffer metrics, ensuring your application's critical path remains lock-free.

Features

  • 🚀 Zero-Contention: Writes to thread-local buffers; global locks are only acquired during infrequent merges.
  • 📊 Rich Statistics: Calculates P50, P90, P99, Standard Deviation, and Counts.
  • 📈 Exporters: Supports JSON, Prometheus, and CSV (Excel) formats.
  • 🔌 Drop-in Ready: Use decorators like @fast_timer and @count_calls.

Installation

pip install pylight-metrics

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

pylight_metrics-0.1.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

pylight_metrics-0.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file pylight_metrics-0.1.2.tar.gz.

File metadata

  • Download URL: pylight_metrics-0.1.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pylight_metrics-0.1.2.tar.gz
Algorithm Hash digest
SHA256 83b329510f82899f9f463168118c783db64cadc89d067c70b41f74c9b72d2277
MD5 9ca2124a73583a90e80a7eb7cd3531bf
BLAKE2b-256 fa6cc4f86dff44b34bd0f5972ec1bcd1ea540a697738dc22b84b8d34ed4b1a5d

See more details on using hashes here.

File details

Details for the file pylight_metrics-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pylight_metrics-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 932b39985581281fa11639fbb31d1f8fcf14a32244e12b25368d4573571a4f57
MD5 c3718b4fec7b2592644b36a18757e31e
BLAKE2b-256 fc1fa7d2423208a3cbf6d96e34d0961b380363a6dc240e5516d26013ff83eb26

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