Python library and CLI for validating UTF-8 text
Project description
validate-utf8
Python library and CLI for validating UTF-8 text.
Install it like this:
pip3 install validate-utf8
The command-line tool works like this:
$ validate-utf8 20081104__wv__general__mason__precinct.csv
invalid continuation byte
Mason,28 COURTHOUSE-GROUND FLOORá,,,REP,Straight Ticket,15
^
invalid continuation byte
Mason,28 COURTHOUSE-GROUND FLOORá,,,DEM,Straight Ticket,21
^
Use it as a library like this:
from validate_utf8 import find_utf8_errors
errrors = find_utf8_errors(bytestring):
if not errors:
print("It is valid")
else:
print(errors)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file validate_utf8-0.1-py3-none-any.whl
.
File metadata
- Download URL: validate_utf8-0.1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44acd91e98fcf98cd5a6cf8c9c95dbbc2cc2c298cb5ac369b6221abbd71d20dd |
|
MD5 | d610abb9f30e5d91e78eb5218a66f163 |
|
BLAKE2b-256 | dc907af85020cb13292ad064b1f42af18b7f5deb100dfec4ab002a0526a8b4d4 |