Minimalistic lib for trace calls
Project description
CallTrace
A lightweight Python utility to track and log call hierarchy with class and method context.
Features
- Automatically detects calling class and method names
- Tracks nested call paths within the same class
- Simple integration with existing code
- Clean formatted output for debugging
Installation
pip install calltracing
Quick Start
from calltracing import CallContext
class MyClass:
def method1(self):
self.method2()
def method2(self):
print(CallContext.get_caller())
def standalone_function():
print(CallContext.get_caller())
obj = MyClass()
obj.method1()
standalone_function()
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
calltracing-1.0.0.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file calltracing-1.0.0.tar.gz.
File metadata
- Download URL: calltracing-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7e1c8151c5a5d732ac19d911dbdc4e186cd97debf593b8c169874b554e3b818
|
|
| MD5 |
04c01e0003c9202bab158018d474364b
|
|
| BLAKE2b-256 |
d1f9beb4f605870b637f6fe08c43e57f041837d71c6340a23c8ec9ca19201cc6
|
File details
Details for the file calltracing-1.0.0-py3-none-any.whl.
File metadata
- Download URL: calltracing-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d856cf58fb28fbf0f07849d994ecd51f67a106dc0f8d9ab5c65b540a3f8256d0
|
|
| MD5 |
329af0db60db140f314c21f9c15c28ad
|
|
| BLAKE2b-256 |
8af92f1051fa288f2cefc3031c2e036484e1d60a4dc3a174804dd09a83a864bf
|