Skip to main content

Lightweight Python performance & event tracker

Project description

PyTrack -- Efortless Performance Tracking for Python

Track. Analyze. Improve

  • PyTrack is a lightweight, type-safe performance tracker built for developers who want deep insights into their code without the hassle.
  • Perfect for Discord bots, APIs, data scripts, or any Python project that needs precise execution metrics.

Features

  • Function-level tracking — Measure execution time with a simple decorator

  • Session reports — Automatically summarize tracked function performance

  • Context managers — Profile any code block in a clean, readable way

  • Structured output — Easy-to-parse logs for data visualization

  • Type-safe design — Fully typed with Python 3.10+ annotations

  • Pluggable system — Extend with custom loggers, filters, or exporters

Example

from pytrack_sent import PyTrack

tracker = PyTrack()
my_dict = {}

@tracker.track
def slow_task():
    for _ in range(10**7):
        my_dict[_] = _
    tracker.event("slow_task_completed")

@tracker.track 
def slowertask():
    for _ in range(4):
        slow_task()

slow_task()
slowertask()
tracker.summary()

Output

📊 PyTrack Report: default
 - slow_task: 5 calls, avg 1.0056s
 - slowertask: 1 calls, avg 3.8714s

Events:
 - slow_task_completed: 5 times

Why PyTrack?

Unlike heavy profilers, PyTrack is developer-friendly, portable, and customizable. It’s perfect for measuring performance in scripts, bots, or production-ready apps without slowing them down.

Installation

pip install pytrack-sent

GUI Dashboard (coming soon)

A built-in dashboard for visualizing tracked data in real-time using a simple pytrack dashboard command.

Planned Integrations

  • Discord.py command profiling

  • Matplotlib and Plotly report generation [ADDED]

  • Cloud export support (JSON/CSV)

  • AI code profiling insights (experimental)

Made for developers who care about performance.

Simple. Typed. Transparent. See live performance charts, trends, and insights right from your terminal or browser

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

pytrack_sent-0.2.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

pytrack_sent-0.2.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pytrack_sent-0.2.5.tar.gz.

File metadata

  • Download URL: pytrack_sent-0.2.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pytrack_sent-0.2.5.tar.gz
Algorithm Hash digest
SHA256 b42cb069a6561393747e471df8fea5bf01116bc0f251b17f5d51a4d66844c3e6
MD5 444345e89ddd06ab7eb4c3ed923e6e27
BLAKE2b-256 396a5151e13028fb626c0edc1368e23fc4f57bb67c45d1cc6f1810ceb12dbdc1

See more details on using hashes here.

File details

Details for the file pytrack_sent-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: pytrack_sent-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for pytrack_sent-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 af3a9a217593a63aa286e89d3bc73314a8801512e1478664f337c94fef022d57
MD5 05dc64015403bb9918ba02f905700b0a
BLAKE2b-256 247cf5b3caa8e75169062f0fb4c98e52d8652b20d05ee459b89203b3780050bd

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