Zero-config performance monitoring for Python
Reason this release was yanked:
Documentation formatting error.
Project description
🚀 EZ-Audit Zero-Config Performance Monitoring for Python EZ-Audit is a lightweight, "zero-dependency" tool designed for developers who need to track code performance without the bloat of enterprise monitoring suites. With a single decorator, you can audit execution time and peak memory consumption. ✨ Key Features ⏱️ Microsecond Accuracy: Precise execution timing using time.perf_counter. 🧠 Memory Profiling: Tracks peak RAM usage during a function's lifecycle. 🛡️ Crash-Safe Logging: Records data even if your function raises an exception. ⚠️ Threshold Alerts: Automatically flags functions that exceed your defined time limits. 🪶 Zero-Weight: Built entirely on the Python Standard Library (no external dependencies). 📦 Installation Install directly from your local source (while in the ez-audit folder): code Bash pip install . For development (editable mode): code Bash pip install -e . 🚀 Quick Start Basic Usage Just drop the @monitor decorator onto any function you want to track. code Python from ezaudit import monitor
@monitor def process_data(): # Your logic here data = [x for x in range(1000000)] return "Done!"
process_data() Advanced: Threshold Alerts Get a warning if a function takes longer than expected. code Python @monitor(threshold_sec=0.5) def slow_service(): import time time.sleep(1) # This will trigger a [THRESHOLD EXCEEDED] warning 🛠️ Configuration You can customize where logs are saved and whether they print to the console. code Python import ezaudit
ezaudit.configure( log_file="performance.log", console_output=True ) 📊 Sample Output Console Output code Text [EZ-AUDIT] Function: process_data | Status: SUCCESS | Duration: 0.0421s | Peak RAM: 38.21MB ⚠️ [THRESHOLD EXCEEDED] Function: slow_service | Status: SUCCESS | Duration: 1.002s | Peak RAM: 0.01MB Audit Log (audit.log) code Text 2026-02-08 17:05:01 | INFO | Function: process_data | Status: SUCCESS | Duration: 0.0421s | Peak RAM: 38.21MB 2026-02-08 17:05:10 | WARNING | ⚠️ [THRESHOLD EXCEEDED] Function: slow_service | Status: SUCCESS | Duration: 1.002s | Peak RAM: 0.01MB 🛡️ Error Handling If your code fails, EZ-Audit catches the context before the crash: code Text [EZ-AUDIT] Function: db_connect | Status: FAILED | Duration: 0.001s | Peak RAM: 0.02MB | Error: ConnectionError 📜 License Distributed under the MIT License. See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
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 ez_audit-0.1.0.tar.gz.
File metadata
- Download URL: ez_audit-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b1779fd41ca26127cf0cd93d8980eb3c408129d8768903ddbe5af4601d10d72c
|
|
| MD5 |
bc803a70d1d780103dd87dde140a97b1
|
|
| BLAKE2b-256 |
4b9a873a9dcb5f4f7d39ba9fdd8988740213911aadd53f17e54c5720f1deacac
|
File details
Details for the file ez_audit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ez_audit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e6296f55a068d58ec7427330ba230dce5e6fb46a2b10b134893454e51168459
|
|
| MD5 |
558d17edc7138ad9599cd05c16e33860
|
|
| BLAKE2b-256 |
05fff7bf11bfa31f1d181244b16bcc52e4d35590ca3c644031a622bb76b3d351
|