Skip to main content

Pylint Tests

F Bomb

If you've ever need to drop an F bomb in your code, we've got you covered. Drop a blunt, multilingual "F-bomb" in your Python code.

Installation

pip install f_bomb

Quick start

from f_bomb import F_Bomb

bomb = F_Bomb()
print(str(bomb))          # FUCK!
print(bomb.drop("fr"))    # PUTAIN!

Usage

Choose a default language

from f_bomb import F_Bomb

bomb = F_Bomb("de")
print(bomb.drop())        # SCHEISSE!

Drop once in a specific language

from f_bomb import F_Bomb

bomb = F_Bomb()
print(bomb.drop("it"))    # CAZZO!

Carpet bomb (intentionally noisy)

from f_bomb import F_Bomb

bomb = F_Bomb("en")
print(bomb.carpet_bomb(3))  # FUCK!\nFUCK!\nFUCK!

More ordnance

from f_bomb import F_Bomb

bomb = F_Bomb()
print(bomb.defuse())        # F**K!
print(bomb.dud())           # fudge.
print(bomb.countdown())     # 3... 2... 1... FUCK!
print(bomb.grawlix())       # e.g. #@$%&!
print(bomb.roulette())      # one drop in a random language
print(bomb.cluster_bomb())  # 5 drops in different random languages
print(bomb.nuke())          # every supported language at once

Drop one when your code blows up

from f_bomb import F_Bomb

@F_Bomb.on_error
def deploy():
    raise RuntimeError("prod is down")

deploy()  # prints FUCK! to stderr, then re-raises the RuntimeError

API

F_Bomb(language: str = "en")

Creates a new bomb with a default language code.

drop(language: str | None = None) -> str

Returns the uppercase expletive for the provided language code, or the default.

carpet_bomb(number: int = 100, language: str | None = None) -> str

Returns number drops, one per line.

defuse(language: str | None = None) -> str

Returns a work-safe drop with the middle letters starred out.

dud() -> str

Returns fudge.

countdown(seconds: int = 3, language: str | None = None) -> str

Counts down from seconds, then drops.

grawlix(length: int = 5) -> str

Returns length random cartoon swear symbols followed by !.

roulette() -> str

Drops in a random supported language.

cluster_bomb(number: int = 5) -> str

Drops in number different random languages, one per line. Raises ValueError if number exceeds the supported languages.

nuke() -> str

Drops in every supported language, one per line.

@F_Bomb.on_error

Decorator that prints an English drop to stderr when the wrapped function raises, then re-raises.

Supported language codes

The library ships with a list of language codes mapped to strong profanities. Examples: en, es, fr, de, it, pt, ru, ja, ko, zh.

Notes

  • Language codes are lowercased internally.
  • Unknown language codes raise KeyError.

Metadata

Release files for f-bomb 0.0.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 f-bomb 0.0.3
File Size Uploaded
f_bomb-0.0.3.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for f-bomb 0.0.3
File Interpreter ABI Platform
f_bomb-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / f_bomb-0.0.3.tar.gz

Download URL f_bomb-0.0.3.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f20208ea65ce1d9bfb4a22a0729b1aee6e1cf508d2f03d8ce69a124a369555c6
BLAKE2b-256 checksum
How to use checksums
5a4bca55d33c7d420cc44666f0991a78b7d799bff4499a93cdfd9ae1240937ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / f_bomb-0.0.3-py3-none-any.whl

Download URL f_bomb-0.0.3-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55620ab50bb018a6c597fba83c3415e1b4a174f9ede21dd6f94555832edf1cbe
BLAKE2b-256 checksum
How to use checksums
5cd329e8a7fb63ccd2f5c6ebd9874adc96f4b6d448966d44561e64b2514b4aae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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