Skip to main content

Line-by-line performance profiler for Python

Project description

🔥 linepulsepy

PyPI version License Python Downloads

linepulsepy is a lightweight Python package that helps developers instantly identify slow lines of code using a simple decorator. Perfect for debugging, optimization, and performance tuning.


🌟 Features

  • Line-by-line execution time tracking
  • Color-coded output for fast, medium, and slow lines
  • Simple decorator: just add @profile_lines
  • Works with any Python function
  • No external dependencies

📦 Installation

pip install linepulsepy

📸 Screenshots / Example Output


from linepulsepy import profile_lines
import time

def call():
    time.sleep(2)

@profile_lines
def test_func():
    x = 0
    for i in range(5):
        call()
        x += i
        time.sleep(0.2)
    return x

test_func()
Screenshot 2026-05-01 at 10 43 49 PM

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

linepulsepy-0.1.2.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

linepulsepy-0.1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: linepulsepy-0.1.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for linepulsepy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b5efe60144b25894e9009a333a49e5de467c1da38c30bfb228c784c9b8b0e937
MD5 bc7f019c8e8a2ed702205bb9aedfba47
BLAKE2b-256 0bed16f1b317d22520dc4380ebc64ec06bca7bfdddf2e1397739db3df6710c3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: linepulsepy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for linepulsepy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 35c7f92356bb40e03ec8ad62c375ae2bb4e4d604014e4c7a35a7107e92d5a374
MD5 5d19b5515c948180719a7b05acad0474
BLAKE2b-256 8cadb146d4c1ec48a27b2f9bcb6dc88a2679d7c9b4da6656677bf825a87f0852

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