FRIENDLY(1)
π 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, likefrfor French orenfor 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 includedarkandlight. choose your aesthetic πβοΈ--background COLORβ sets the background color for thedarkorlightformatter. 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 tofriendly_tbwhen showing the console, andexplainotherwise. 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
- ubuntu stonking: python3-friendly 0.7.21+git20230418.fe5d3a2-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms