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.3.tar.gz (6.8 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.3-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pylight_metrics-0.1.3.tar.gz
  • Upload date:
  • Size: 6.8 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.3.tar.gz
Algorithm Hash digest
SHA256 5ab8c148a369df4995ee97c669e5ec868b4d7a5056313af8b9ecba5185a2a215
MD5 afd8dfaab037fa36e52827c88582718e
BLAKE2b-256 ed7f9c88671f138b9e1fa95292a51fd87571e8fe47a44defde84829281a4a483

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pylight_metrics-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2bcd50e287e5a7e162020a0befd8a645bd58fcd52ba9bcdb8e3b2ccfa26179a9
MD5 700326899f0d8e28687de2e5c1802bfc
BLAKE2b-256 7fad5c99949e0ff62c6437d0cdbeb3f7b46b1c0c35ac8181bac67bc9e26980fc

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