Skip to main content

Python bindings for libbacktrace - native stack traces with DWARF symbols

Project description

libbacktrace-python

Python bindings for libbacktrace by Ian Lance Taylor.

This package provides Python access to native (C/C++) stack traces with DWARF symbol resolution on Linux and macOS.

Installation

pip install libbacktrace-python

Usage

import libbacktrace

# Check if supported on this platform
if libbacktrace.supported():
    # Get current native stack trace
    frames = libbacktrace.get_backtrace()
    for frame in frames:
        print(f"  {frame.function} at {frame.filename}:{frame.lineno}")

Platform Support

Platform Status Symbol Resolution
Linux ✅ Full DWARF via ELF
macOS ✅ Full DWARF via Mach-O
Windows ❌ Not supported -

Features

  • Native C/C++ stack traces from Python
  • DWARF debug symbol resolution (function names, file names, line numbers)
  • Signal-safe operation (can be used in crash handlers)
  • Minimal dependencies (just Python)

Use Cases

  • Crash reporting and diagnostics
  • Debugging native extensions
  • Performance profiling
  • Error logging with full context

Credits

This package provides Python bindings for libbacktrace, which is developed by Ian Lance Taylor at Google and is part of the GCC project.

libbacktrace is licensed under the BSD 3-Clause License. See THIRD_PARTY_NOTICES.txt for details.

License

This package (the Python bindings and build configuration) is licensed under the Apache License 2.0.

The bundled libbacktrace library is licensed under the BSD 3-Clause 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

libbacktrace_python-0.2.1.tar.gz (635.9 kB view details)

Uploaded Source

Built Distributions

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

libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (63.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl (30.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (63.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl (30.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (63.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl (30.7 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (63.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.28+ x86-64

libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl (30.7 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

File details

Details for the file libbacktrace_python-0.2.1.tar.gz.

File metadata

  • Download URL: libbacktrace_python-0.2.1.tar.gz
  • Upload date:
  • Size: 635.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for libbacktrace_python-0.2.1.tar.gz
Algorithm Hash digest
SHA256 19c9cf97ddd7004ad220de20b426295629296c28014681c93e7bb10f96ce33ac
MD5 00d533b3a0194f78900d6fdc1dd7d812
BLAKE2b-256 f1b470df5778151abc4621550e3a6db1229b2ce36fadf0696679fc03f4015c57

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1.tar.gz:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7ccc74b1c744d900f2214eddffa2997f70c538c1248a1abbdec83f57f04b21ab
MD5 a85e9bb53df5d675c2452e8b2fbae624
BLAKE2b-256 a785000a66a0713d4ba2c62a504704b2d80088eda6526bbc3b43d27e7d78a259

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 593f06a1d975a4c5f9835b24597a43da98d1c0ca504f8431d8acd8545671067f
MD5 6c4927aef6f1d4814fb7782316b460ec
BLAKE2b-256 a0c84017ac1403feea8ced4ea5df9cd990790a138a55d2d23672cac72d3c8dab

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c87241da5dc9b10a66e2cf4aced752f67839587ec8bc756cfb6a137014690f69
MD5 e118014bb8da2705de6828afd262920d
BLAKE2b-256 583ee23b48890b5c5ca24622381340b449dda3a7f4c639c06f680eac951a7d02

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 a078fd2389f76f7631cd7bf135540e54ff70a18d85eab1d82f2c4db0129aace2
MD5 28028e631bd4ab0b598492eaf445b0fa
BLAKE2b-256 2ef345ab5400cdfd55c83b2346f163959f7209fee0efac2b97df67dc6cb566de

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4f8e751e41d45e2042ea8d3aa30b4769924a303b13633a0ef80c6795e991507e
MD5 3c5958b1fed8a3a14c439be22207cfba
BLAKE2b-256 19ce8111fc98553a9d3630835c7a0e6e83ddffc7e83c7d8e67effeb066383850

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 48fd0541fcd0adbc921c52d22fcaf3ac10ae0e35804ed5ef8f418ed85ee5b0ea
MD5 4fc99869a1f503a2fe5a9bc599a47974
BLAKE2b-256 151a23b794529c8fd22c05dfb5b67256a8660429a2862a1aadeffe4a506dfb9f

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 856f3adec121653076188110db9f3b991af9a1dd55c8d5bfad3e2ec78e77a0b4
MD5 485eed42bc11c86c13f2fba462f53e3b
BLAKE2b-256 6949d8664ad7c23fe55e80b9c2e450c8e6dc005131b2aecdaed729b9fcc8bf11

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0bea6c6aede0ec8627733144c734c63cec1b62b7545a6e61ac584b56408fa3ff
MD5 385b66fab1e6a11aca3847c40ed51303
BLAKE2b-256 bb70273f8f82be6c2b048176972ff3e3c3435ec70548cde95c4d594eed7629b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl:

Publisher: release.yml on retracesoftware/libbacktrace-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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