FRIENDLY(1)

πŸ“¦ version 0.7.21+git20230418.fe5d3a2, in ubuntu stonking

πŸ’– FRIENDLY(1) πŸ’–

okay bestie, welcome to the friendly manual page ✨ (that's the title, and the manual name is just... friendly, cute right? one whole word, no notes πŸ’…)


🌸 NAME 🌸

friendly β€” friendlier Python tracebacks 🫢

like, tracebacks but they actually talk to you instead of screaming at you in cryptic


✨ SYNOPSIS ✨

friendly [OPTIONS] [source] [args ...]

that's the whole vibe. options, maybe a script, maybe some args, go off πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea: friendly makes Python tracebacks easier to understand by providing

clearer, friendlier error messages in various human languages. 🌈

If no source is provided, Friendly starts an interactive console similar to a Python shell, except with enhanced traceback explanations ✨ (yes, it explains why your code is being like that 😭).

If a script is provided, Friendly runs it as if it were the main module and shows you detailed traceback information if an exception occurs. it's giving "your code broke but make it educational" πŸ’–


πŸŽ€ POSITIONAL ARGUMENTS πŸŽ€

  • source β€” the path to a Python script to run (like, for example, path/to/script.py). this script gets treated as the main module, as in __name__ == "__main__". periodt πŸ’…
  • args β€” optional arguments you wanna pass along to the script that's chilling in source. yup, it forwards them 🌸

πŸ‘‘ OPTIONS πŸ‘‘

  • -h, --help β€” shows this help message and then dips out. exit stage left πŸšͺ✨
  • --lang LANG β€” sets the interface language for Friendly using a two-letter code, like fr for French or en for English.
⚠️ Note, bestie: translations for French (fr), Russian (ru), and Spanish (es) are currently incomplete. It is recommended to use your default language, English (en). πŸ’€ no cap.
  • --version β€” shows the current version of Friendly and Friendly-Traceback, then exits. two for one 🫢
  • -f, --formatter FORMATTER β€” picks your output formatter. available options include dark and light. choose your aesthetic πŸŒ™β˜€οΈ
  • --background COLOR β€” sets the background color for the dark or light formatter. must be a hex color code like #ffffff. 🎨
  • --debug β€” enables debug mode (this one's for the developers πŸ‘©β€πŸ’»).
  • --no_debug β€” disables debug mode. bye bye debug 🀫
  • --include CONTENT β€” says which content to include by default in the traceback. it defaults to friendly_tb when showing the console, and explain otherwise. iykyk πŸ’…
  • --python_prompt β€” uses the standard Python prompt in the interactive console instead of the custom Friendly one. classic era 🐍
  • -i β€” launches the Friendly console after executing the script. main character energy fr fr πŸ‘‘
  • -x β€” only launches the Friendly console after executing the script if an exception was raised. conditional queen πŸ’…

🌈 EXAMPLES 🌈

Display version info:

friendly --version Friendly version 0.7.21

Friendly allows

friendly my_script.py

Run a script and enter the console only if an exception is raised:

friendly -x my_script.py

Run the friendly console in interactive mode:

friendly or friendly -i my_script.py

Use the dark formatter with a custom RGB background color:

friendly -f dark --background "#808080" my_script.py
friendly -f dark --background "#000000" my_script.py
friendly -f dark --background "#505050" my_script.py

Use the light formatter with a custom RGB background color:

friendly -f light --background "#e0f7fa" my_script.py
friendly -f light --background "#fff8b0" my_script.py
friendly -f light --background  "#ccffcc" my_script.py

Friendly allows Combines the parameters

friendly -f dark --background "#2e2e2e" -x my_script.py

friendly -f light --background "#ffffff" -x my_script.py

Changes the console prompt to the default Python prompt (>>>) instead of the custom Friendly prompt:

friendly --python_prompt -i my_script.py

Enables/disables additional information for developers:

friendly --debug my_script.py or friendly --no_debug my_script.py

πŸ’œ SEE ALSO πŸ’œ

see: https://friendly-traceback.github.io/docs/index.html πŸ¦‹ go read it, it's iconic


🧚 AUTHOR 🧚

Friendly was created by AndrΓ© Roberge. πŸ’–

This manual page was written for the Debian project by Josenilson Ferreira da Silva <nilsonfsilva@hotmail.com>. 🫢


and that's the whole page, bestie!! ✨ this is version 0.7.21, dated Sep 2025, and the source is the FRIENDLY(1) man page for the User Commands section β€” tysm for reading, mwah πŸ’‹πŸŽ€πŸŒΈ

πŸ“¦ where this page comes from