Skip to main content

Silence chosen exceptions.

stfu is a replacement for the idiom:

try:
    may_raise_exception()
except Exception:
    pass

Just write:

with stfu:
    may_raise_exception()
with stfu(TypeError, ValueError):
    may_raise_type_or_value_error()

To catch everything (even KeyboardInterrup and StopIteration):

with stfu_all:
    may_raise_any_exception()

Remember to import it:

from stfu import stfu
from stfu import stfu_all

Errors should never pass silently.
Unless explicitly silenced.

Release files for stfu 1.3

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

Source distribution (sdist)

Source distribution for stfu 1.3
File Size Uploaded Provenance Actions
stfu-1.3.tar.gz 1.6 kB Without provenance Details for stfu-1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stfu 1.3
File Interpreter ABI Platform Actions
stfu-1.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for stfu-1.3-py2.py3-none-any.whl

Total release size: 3.5 kB

Release files / stfu-1.3.tar.gz

Download URL stfu-1.3.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b2922484eb5ec2076db87f3b5df4fcc22fcf4a6183e76c92db2f4cfb9b4924f
BLAKE2b-256 checksum
How to use checksums
578a16cbdd8d00d1e3122685c075b09b34fd6e327fb79d9b9bc42777ac803b2c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Release files / stfu-1.3-py2.py3-none-any.whl

Download URL stfu-1.3-py2.py3-none-any.whl
Size 1.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
6ef6944d07a77e9642b23525780b56c729d619b9ad511bd11d1357ab5071fedb
BLAKE2b-256 checksum
How to use checksums
79a351b6f26b4d0201de644e3a79a8e8d6f664246d2dc477c28aef05be730896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.5.9

Security for stfu 1.3

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

1.3 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