Skip to main content
Shortfuse Banner Shortfuse Logo

PyPI version License: MIT Build Status Code Style

Don't just raise exceptions—kill the process.

shortfuse is a zero-tolerance "fail fast" utility for enforcing architectural boundaries. It creates uncatchable traps in deprecated code paths to instantly halt execution and expose regressions.


📚 Documentation

Click here for Full API Docs & Examples

🚀 Quick Start

Installation

pip install shortfuse-lib

The "Loud" Failure

When shortfuse halts, it bypasses try/except blocks and finally handlers by using os._exit(1).

import shortfuse

# 1. Dead Code Trap
shortfuse.halt("Legacy endpoint is dead")

# 2. Conditional Trap
shortfuse.halt_unless(config.v3_enabled, "Must use V3 Config")

# 3. Dependency Trap
shortfuse.halt_if_not_none(legacy_client, "Legacy client must be removed")

For the full visual demonstration of the stack trace, see the Documentation.

Metadata

Release files for shortfuse-lib 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shortfuse-lib 0.1.0
File Size Uploaded Provenance Actions
shortfuse_lib-0.1.0.tar.gz 4.8 kB Without provenance Details for shortfuse_lib-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for shortfuse-lib 0.1.0
File Interpreter ABI Platform Actions
shortfuse_lib-0.1.0-py3-none-any.whl Python 3 none any Details for shortfuse_lib-0.1.0-py3-none-any.whl

Total release size: 9.8 kB

Release files / shortfuse_lib-0.1.0.tar.gz

Download URL shortfuse_lib-0.1.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
593d13143850eef4f55234d98b142d226c9214270273f2a8a205fd198b204572
BLAKE2b-256 checksum
How to use checksums
ad0a30987313b71378632ef4b68db993557f901b9fb39f1cf3f00f810291e959
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Release files / shortfuse_lib-0.1.0-py3-none-any.whl

Download URL shortfuse_lib-0.1.0-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad09d1a942dd8a34b7e96ee5d88f8695e011727227c50414e3a73f16255caf77
BLAKE2b-256 checksum
How to use checksums
e3ab7958ab241dab769b1588e04802ac7a84f04ba28118615c2c37906d814853
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.2

Security for shortfuse-lib 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page