Skip to main content

validate-utf8

PyPI License

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)

Release files for validate-utf8 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for validate-utf8 0.1
File Interpreter ABI Platform
validate_utf8-0.1-py3-none-any.whl Python 3 none any Details

Release files / validate_utf8-0.1-py3-none-any.whl

Download URL validate_utf8-0.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44acd91e98fcf98cd5a6cf8c9c95dbbc2cc2c298cb5ac369b6221abbd71d20dd
BLAKE2b-256 checksum
How to use checksums
dc907af85020cb13292ad064b1f42af18b7f5deb100dfec4ab002a0526a8b4d4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page