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
Metadata
Release files for enconv 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| enconv-0.0.5.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| enconv-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.2 kB
Release files / enconv-0.0.5.tar.gz
| Download URL | enconv-0.0.5.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a147640a7989b4e3d9a2805bd58a33a18047f9fc0342b43caf9c3eb460f8628
|
|
BLAKE2b-256 checksum How to use checksums |
e4c9599f35179db85d6c73f2feda64e2b078fe9184c568e6c8c275b3e55e2a33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Release files / enconv-0.0.5-py3-none-any.whl
| Download URL | enconv-0.0.5-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90a867451ef56acd9b3f2dccb4fcdc8f817120ef4ad1cad74c826525b1f513c5
|
|
BLAKE2b-256 checksum How to use checksums |
379f32d09f503c5915c712072aab7e2679b652fed794d927f3a93f2e2ed23531
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|