Skip to main content

A lightweight Python toolkit for debugging and performance analysis

Project description

DebugAid

Python Version License Version

DebugAid is a lightweight Python utility for performance analysis and memory profiling.

Features

  • Precision Timing - Measure code execution time with high accuracy
  • Memory Profiling - Analyze memory usage of variables and files
  • Multiple Units - Support for bits, bytes, KB, MB, GB
  • Simple API - Intuitive and easy-to-use functions

Installation

pip install debugaid

Quick Start

import debugaid

# Measure execution time
time_result = debugaid.time_counter("sum([i**2 for i in range(10000)])")
print(time_result)  # Execution time: 0.000627599998552 seconds

# getting the memory of a variable
my_list = [i for i in range(10000)]
size_result = debugaid.size_var(my_list, "kb")
print(size_result)  # 876.23 KB

# Analyze file size
file_size = debugaid.size_file("data.csv", "mb")
print(file_size)  # 2.45 MB

License

MIT License

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

debugaid-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

debugaid-1.0.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file debugaid-1.0.0.tar.gz.

File metadata

  • Download URL: debugaid-1.0.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for debugaid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5ae75a0666d6ee01eb2c18fc37b2e160ebf188cde8ca43c11beeaca7ba97def2
MD5 e2ab69d7448b68d606e024348744bdfc
BLAKE2b-256 227b8419dfdf52c58f277d437ffbe808a65f5bb68c018874de8ae7b96dd18461

See more details on using hashes here.

File details

Details for the file debugaid-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: debugaid-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for debugaid-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e36028867b99d81b9f64ecd37ed19fe50060e800de99d0749a4a38fdb7699d91
MD5 7fa472b4fcff11670509ce9cd1e6521f
BLAKE2b-256 005c26d07f30865cd8419082549df9a921b0aedc466fe14de864db6f137bada4

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