Skip to content
Command line tool for managing source files encodings based on PEP263
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pep263
tests
.bumpversion.cfg
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
pytest.ini
setup.py

README.md

Keep your files encodings consistent Build Status

Command line tool for managing source files encodings based on PEP263.

Instalation

pip install pep263

Usage

Help

$ 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.

Listing encodings

$ pep263 .
./pep263/core.py: no encoding
./pep263/errors.py: no encoding
./pep263/cli.py: no encoding
...

Appending encodings

$ pep263 . --append utf-8
./pep263/core.py: utf-8
./pep263/errors.py: utf-8
./pep263/cli.py: utf-8
...

Overwriting encodings

$ pep263 . --append utf-16 --force
./pep263/core.py: utf-16
./pep263/errors.py: utf-16
./pep263/cli.py: utf-16
...

License

MIT

You can’t perform that action at this time.