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())  # FUCK! plus a very large newline payload

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(language: str | None = None, amount: int = 100) -> str

Returns a single drop followed by a very large block of newlines.

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

f_bomb-0.0.1.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

f_bomb-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file f_bomb-0.0.1.tar.gz.

File metadata

  • Download URL: f_bomb-0.0.1.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for f_bomb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 50a0578216547e457ad1fabe0764697458f6bd7049ebbb7d1c7a6387a5452b47
MD5 c7428e367f7fae035268496b8efeebee
BLAKE2b-256 6ae524e3b4b50aff80c09d2cfbfc6caf614751010cd63676ee6b5a0ff62190ec

See more details on using hashes here.

Provenance

The following attestation bundles were made for f_bomb-0.0.1.tar.gz:

Publisher: python-publish.yml on cgivre/f_bomb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file f_bomb-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: f_bomb-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for f_bomb-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f533f2e8ef329a7ce073182a370b3c6b56eee7b9d6445d1a0d19f2929e5e00d
MD5 72bcb3b1e3c927a26eb0666b272a829a
BLAKE2b-256 5851c8972f8cf1df8d87f69ca171c3ed2cd84d6071a888bf73a1fb04509b0a3d

See more details on using hashes here.

Provenance

The following attestation bundles were made for f_bomb-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on cgivre/f_bomb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page