Encoding conversion utilities based on chardet.
Project description
Enconv
A light wrapper around chardet to conveniently convert text files.
Install
Optionally create virtual env
~$ 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.4.tar.gz
(5.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file enconv-0.0.4.tar.gz.
File metadata
- Download URL: enconv-0.0.4.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37fb1ad0858bde2bfc3c3ea09ca02ddf73fa2c5501334138b40de93b291f5484
|
|
| MD5 |
2d9c70b7e1c77fbc116540ef2c3811fd
|
|
| BLAKE2b-256 |
204bcbbd2e588c312e7afed52178684d90a6f198abe7541943f49eaaa8c9fb87
|
File details
Details for the file enconv-0.0.4-py3-none-any.whl.
File metadata
- Download URL: enconv-0.0.4-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40c0d0f712ed51a67c4d985102ff917279d62d56fbe77e594dd8c48945d1830a
|
|
| MD5 |
0f8133d0adc9921962fec31b059fd8ec
|
|
| BLAKE2b-256 |
1167ef0a503058c52255be09d67bac938d56308b5bfe829b5e837d8ca1791a67
|