Skip to main content

Minimalistic lib for trace calls

Project description

CallTrace

Calltracer Logo
PyPI Version Python 3.8+ MIT License

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


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)

Uploaded Source

Built Distribution

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

calltracing-1.0.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

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

Hashes for calltracing-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f7e1c8151c5a5d732ac19d911dbdc4e186cd97debf593b8c169874b554e3b818
MD5 04c01e0003c9202bab158018d474364b
BLAKE2b-256 d1f9beb4f605870b637f6fe08c43e57f041837d71c6340a23c8ec9ca19201cc6

See more details on using hashes here.

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

Hashes for calltracing-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d856cf58fb28fbf0f07849d994ecd51f67a106dc0f8d9ab5c65b540a3f8256d0
MD5 329af0db60db140f314c21f9c15c28ad
BLAKE2b-256 8af92f1051fa288f2cefc3031c2e036484e1d60a4dc3a174804dd09a83a864bf

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