Quick start¶
Install:
Detect encoding from bytes:
from bytesense import from_bytes
result = from_bytes(data)
print(result.encoding, result.confidence, result.language)
Use the CLI:
For streaming HTTP or file reads, use StreamDetector (see README examples).