semvec/pypi-packages huggingface dataset:
guess 1.0.5
Japanese charactor encoding detector
License: BSD

This module was ported from gauche charconv module.
Supported encoding is UTF-8, Shift_JIS, EUC-JP, ISO-2022-JP

Example:

>>> import guess
>>> s = '\x82\xa0\x82\xa2\x82\xa4\x82\xa6\x82\xa8'
>>> guess.guess(s)
'Shift_JIS'
>>> print s.decode('Shift_JIS')
あいうえお