Usage#
bleach#
Remove unsightly visible characters from your source code.
Replaces the unsightly visible characters in Python source code with strings of spaces and tabs.
bleach [OPTIONS] COMMAND [ARGS]...
bleach#
Bleach a file by replacing unsightly visible characters.
Writes to standard output by default.
INFILE: Input file to bleach.
bleach bleach [OPTIONS] INFILE
Options
- -o, --outfile <outfile>#
Write to this file.
Arguments
- INFILE#
Required argument
install#
Install the bleach codec to be used natively.
This command will install a bleach.pth file into your Python installation’s site-packages folder, enabling you to run bleached files with “# coding=bleach” without having to use “bleach run”.
bleach install [OPTIONS]
Options
- -u, --user, -s, --system#
run#
Run a bleached (or unbleached) script.
Wrapper around “python script.py” or “python -mscript” that understands “# coding=bleach” comments. If the “install” command has been run, this wrapper is not necessary.
FILENAME: Script to run.
bleach run [OPTIONS] [FILENAME]
Options
- -m, --module <module>#
Run library module as script
Arguments
- FILENAME#
Optional argument
unbleach#
Unbleach a bleached file, restoring those visible characters.
Writes to standard output by default.
INFILE: Input file to unbleach.
bleach unbleach [OPTIONS] INFILE
Options
- -o, --outfile <outfile>#
Write to this file.
Arguments
- INFILE#
Required argument