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
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
Built Distributions
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
19c9cf97ddd7004ad220de20b426295629296c28014681c93e7bb10f96ce33ac
|
|
| MD5 |
00d533b3a0194f78900d6fdc1dd7d812
|
|
| BLAKE2b-256 |
f1b470df5778151abc4621550e3a6db1229b2ce36fadf0696679fc03f4015c57
|
Provenance
The following attestation bundles were made for libbacktrace_python-0.2.1.tar.gz:
Publisher:
release.yml on retracesoftware/libbacktrace-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1.tar.gz -
Subject digest:
19c9cf97ddd7004ad220de20b426295629296c28014681c93e7bb10f96ce33ac - Sigstore transparency entry: 892825224
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
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
- Download URL: libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ccc74b1c744d900f2214eddffa2997f70c538c1248a1abbdec83f57f04b21ab
|
|
| MD5 |
a85e9bb53df5d675c2452e8b2fbae624
|
|
| BLAKE2b-256 |
a785000a66a0713d4ba2c62a504704b2d80088eda6526bbc3b43d27e7d78a259
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
7ccc74b1c744d900f2214eddffa2997f70c538c1248a1abbdec83f57f04b21ab - Sigstore transparency entry: 892825336
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
File details
Details for the file libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 30.7 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
593f06a1d975a4c5f9835b24597a43da98d1c0ca504f8431d8acd8545671067f
|
|
| MD5 |
6c4927aef6f1d4814fb7782316b460ec
|
|
| BLAKE2b-256 |
a0c84017ac1403feea8ced4ea5df9cd990790a138a55d2d23672cac72d3c8dab
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp312-cp312-macosx_11_0_arm64.whl -
Subject digest:
593f06a1d975a4c5f9835b24597a43da98d1c0ca504f8431d8acd8545671067f - Sigstore transparency entry: 892825384
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
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
- Download URL: libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c87241da5dc9b10a66e2cf4aced752f67839587ec8bc756cfb6a137014690f69
|
|
| MD5 |
e118014bb8da2705de6828afd262920d
|
|
| BLAKE2b-256 |
583ee23b48890b5c5ca24622381340b449dda3a7f4c639c06f680eac951a7d02
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
c87241da5dc9b10a66e2cf4aced752f67839587ec8bc756cfb6a137014690f69 - Sigstore transparency entry: 892825664
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
File details
Details for the file libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 30.7 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a078fd2389f76f7631cd7bf135540e54ff70a18d85eab1d82f2c4db0129aace2
|
|
| MD5 |
28028e631bd4ab0b598492eaf445b0fa
|
|
| BLAKE2b-256 |
2ef345ab5400cdfd55c83b2346f163959f7209fee0efac2b97df67dc6cb566de
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
a078fd2389f76f7631cd7bf135540e54ff70a18d85eab1d82f2c4db0129aace2 - Sigstore transparency entry: 892825427
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
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
- Download URL: libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f8e751e41d45e2042ea8d3aa30b4769924a303b13633a0ef80c6795e991507e
|
|
| MD5 |
3c5958b1fed8a3a14c439be22207cfba
|
|
| BLAKE2b-256 |
19ce8111fc98553a9d3630835c7a0e6e83ddffc7e83c7d8e67effeb066383850
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
4f8e751e41d45e2042ea8d3aa30b4769924a303b13633a0ef80c6795e991507e - Sigstore transparency entry: 892825761
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
File details
Details for the file libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 30.7 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48fd0541fcd0adbc921c52d22fcaf3ac10ae0e35804ed5ef8f418ed85ee5b0ea
|
|
| MD5 |
4fc99869a1f503a2fe5a9bc599a47974
|
|
| BLAKE2b-256 |
151a23b794529c8fd22c05dfb5b67256a8660429a2862a1aadeffe4a506dfb9f
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp310-cp310-macosx_11_0_arm64.whl -
Subject digest:
48fd0541fcd0adbc921c52d22fcaf3ac10ae0e35804ed5ef8f418ed85ee5b0ea - Sigstore transparency entry: 892825274
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
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
- Download URL: libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
- Upload date:
- Size: 63.6 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
856f3adec121653076188110db9f3b991af9a1dd55c8d5bfad3e2ec78e77a0b4
|
|
| MD5 |
485eed42bc11c86c13f2fba462f53e3b
|
|
| BLAKE2b-256 |
6949d8664ad7c23fe55e80b9c2e450c8e6dc005131b2aecdaed729b9fcc8bf11
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp39-cp39-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl -
Subject digest:
856f3adec121653076188110db9f3b991af9a1dd55c8d5bfad3e2ec78e77a0b4 - Sigstore transparency entry: 892825510
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type:
File details
Details for the file libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 30.7 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bea6c6aede0ec8627733144c734c63cec1b62b7545a6e61ac584b56408fa3ff
|
|
| MD5 |
385b66fab1e6a11aca3847c40ed51303
|
|
| BLAKE2b-256 |
bb70273f8f82be6c2b048176972ff3e3c3435ec70548cde95c4d594eed7629b4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
libbacktrace_python-0.2.1-cp39-cp39-macosx_11_0_arm64.whl -
Subject digest:
0bea6c6aede0ec8627733144c734c63cec1b62b7545a6e61ac584b56408fa3ff - Sigstore transparency entry: 892825581
- Sigstore integration time:
-
Permalink:
retracesoftware/libbacktrace-python@070cce938b92060a1531e228dbacade46e49cb4d -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/retracesoftware
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@070cce938b92060a1531e228dbacade46e49cb4d -
Trigger Event:
push
-
Statement type: