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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pytrack_sent-0.2.tar.gz
Algorithm Hash digest
SHA256 fac9f0f6bda04f676c90e20ecaf50a5ad4529406fc75536ade1620c852530098
MD5 88766a8555a6139da74ed7bf92ede639
BLAKE2b-256 012b2669fd94cbc5716c40e4bba8469cc36ef1719a7078e510b7acf33bdfb316

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pytrack_sent-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb694d814773f404a63fa7d3663dc4d361b3f428f89a47b073496b493d06fbd8
MD5 08c21810848e755f9303e412095cb1de
BLAKE2b-256 419dd4c305f8afd135e274ba7b4ff1b04395f9d347cf12f1f39dfea75271ff97

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