auto-faulthandler
Automatically enable Python's faulthandler for extension development
Why?
When developing native Python extensions (C/C++/Rust), crashes produce annoying macOS popup dialogs. This package automatically enables faulthandler to dump crash tracebacks to stderr instead, making debugging much faster.
Installation
pip install git+https://github.com/mrexodia/auto-faulthandler
With uv in development mode:
uv add --dev git+https://github.com/mrexodia/auto-faulthandler
Usage
Once installed, it just works! Every Python process will automatically enable faulthandler.
# No imports needed! Just run your code:
import my_crashy_extension
my_crashy_extension.do_something() # Crashes will print to stderr
Note: You need Python 3.14 or higher to get a call stack.
Configuration
Disable temporarily
export AUTO_FAULTHANDLER_DISABLE=1
python your_script.py
Uninstall
pip uninstall auto-faulthandler
How it works
This package installs a .pth file in your Python's site-packages directory. The .pth file automatically imports the auto_faulthandler module on Python startup, which enables faulthandler.enable().
Similar Projects
- auto-dotenv - Automatically load .env files
License
MIT
Metadata
Release files for auto-faulthandler 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| auto_faulthandler-1.0.0.tar.gz | 2.8 kB | Without provenance | Details for auto_faulthandler-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| auto_faulthandler-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for auto_faulthandler-1.0.0-py3-none-any.whl |
Total release size: 6.0 kB
Release files / auto_faulthandler-1.0.0.tar.gz
| Download URL | auto_faulthandler-1.0.0.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f4abc997dcfe9958207e62cbe3d25bbb82a9c0abd1d958eef96c5300fa4c80e
|
|
BLAKE2b-256 checksum How to use checksums |
e76ebee47cbc8f28f15807ac68993110e108f8a21c2796047815738eff980cca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Release files / auto_faulthandler-1.0.0-py3-none-any.whl
| Download URL | auto_faulthandler-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8b31016a4ac8032cf08f822e53a9e2bd2ee8ffd087b7b7a6706a258905cb5550
|
|
BLAKE2b-256 checksum How to use checksums |
724904190adbcf3dbb19e4163a8c97f29c6690b6bfee31c53b723c29fbd50409
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.10
|
Security for auto-faulthandler 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.