Encoding conversion utilities based on chardet.
Project description
Enconv
A light wrapper around chardet to conveniently convert text files.
Install
~$ pip install enconv
Usage
enconv: Guess and convert between encodings
usage: enconv [-h] [-ie INPUT_ENCODING] [-gl GUESS_LENGTH]
[-oe OUTPUT_ENCODING] [-of OUTPUT_FILE] [-ow]
input_file
enportal: Guess and convert file encodings from source to destination folders
usage: enportal [-h] [-ie INPUT_ENCODING] [-gl GUESS_LENGTH]
[-oe OUTPUT_ENCODING] [-ow] [-i INTERVAL]
input_dir output_dir
encheck: Guess text encoding of files in folder
usage: encheck [-h] [-gl GUESS_LENGTH] input_dir
Example
~$ enconv /Users/me/Downloads/chinese.txt
Guess: {'encoding': 'GB2312', 'confidence': 0.99, 'language': 'Chinese'}
Wrote to /Users/me/Downloads/chinese.txt.utf-8 in utf-8
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
enconv-0.0.5.tar.gz
(5.9 kB
view details)
Built Distribution
File details
Details for the file enconv-0.0.5.tar.gz
.
File metadata
- Download URL: enconv-0.0.5.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a147640a7989b4e3d9a2805bd58a33a18047f9fc0342b43caf9c3eb460f8628 |
|
MD5 | a15726afae82c46b1196c665599d5d31 |
|
BLAKE2b-256 | e4c9599f35179db85d6c73f2feda64e2b078fe9184c568e6c8c275b3e55e2a33 |
File details
Details for the file enconv-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: enconv-0.0.5-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90a867451ef56acd9b3f2dccb4fcdc8f817120ef4ad1cad74c826525b1f513c5 |
|
MD5 | af8691e02b91b1e1cf21f1b40b9c685e |
|
BLAKE2b-256 | 379f32d09f503c5915c712072aab7e2679b652fed794d927f3a93f2e2ed23531 |