Command line tool for managing source files encodings based on PEP263.
pip install pep263
$ pep263 --help
Usage: pep263 [OPTIONS] [PATH]
Manage source files encodings.
Options:
--version Show the version and exit.
-A, --append TEXT Append encoding to files
-f, --force Overwrite all files encoding
--help Show this message and exit.
$ pep263 .
./pep263/core.py: no encoding
./pep263/errors.py: no encoding
./pep263/cli.py: no encoding
...
$ pep263 . --append utf-8
./pep263/core.py: utf-8
./pep263/errors.py: utf-8
./pep263/cli.py: utf-8
...
$ pep263 . --append utf-16 --force
./pep263/core.py: utf-16
./pep263/errors.py: utf-16
./pep263/cli.py: utf-16
...
MIT