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.1.tar.gz (3.2 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.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: linepulsepy-0.1.1.tar.gz
  • Upload date:
  • Size: 3.2 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.1.tar.gz
Algorithm Hash digest
SHA256 b2e5b0f8f94435fbe6f3522ab0cd875167af079ffe0cf0cec04b7bd494fcd55c
MD5 71b900bf014378f83814df99c3dc3560
BLAKE2b-256 f13126157f9df8b24268ebff5b2ecd0c8926984ca7593e70bdc5b0ea41d72ad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: linepulsepy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2bc6ea0123e50ee9bfc6b79402adfbd8373ff0f760da9c674a58f9a149a5168
MD5 b68e631e22937c0ed191bc6bbd928596
BLAKE2b-256 06e92771fec9754eeeb4324b273a91f1fa19f23f3f06fecd979f5d1f6c66ed58

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