<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">"""
Charset-Normalizer
~~~~~~~~~~~~~~
The Real First Universal Charset Detector.
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, This package is trying to resolve the issue by taking a new approach.
All IANA character set names for which the Python core library provides codecs are supported.

Basic usage:
   &gt;&gt;&gt; from charset_normalizer import from_bytes
   &gt;&gt;&gt; results = from_bytes('BÑÐµÐºÐ¸ Ñ‡Ð¾Ð²ÐµÐº Ð¸Ð¼Ð° Ð¿Ñ€Ð°Ð²Ð¾ Ð½Ð° Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ðµ. OÐ±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸ÐµÑ‚Ð¾!'.encode('utf_8'))
   &gt;&gt;&gt; best_guess = results.best()
   &gt;&gt;&gt; str(best_guess)
   'BÑÐµÐºÐ¸ Ñ‡Ð¾Ð²ÐµÐº Ð¸Ð¼Ð° Ð¿Ñ€Ð°Ð²Ð¾ Ð½Ð° Ð¾Ð±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸Ðµ. OÐ±Ñ€Ð°Ð·Ð¾Ð²Ð°Ð½Ð¸ÐµÑ‚Ð¾!'

Others methods and usages are available - see the full documentation
at &lt;https://github.com/Ousret/charset_normalizer&gt;.
:copyright: (c) 2021 by Ahmed TAHRI
:license: MIT, see LICENSE for more details.
"""

from __future__ import annotations

import logging

from .api import from_bytes, from_fp, from_path, is_binary
from .legacy import detect
from .models import CharsetMatch, CharsetMatches
from .utils import set_logging_handler
from .version import VERSION, __version__

__all__ = (
    "from_fp",
    "from_path",
    "from_bytes",
    "is_binary",
    "detect",
    "CharsetMatch",
    "CharsetMatches",
    "__version__",
    "VERSION",
    "set_logging_handler",
)

# Attach a NullHandler to the top level logger by default
# https://docs.python.org/3.3/howto/logging.html#configuring-logging-for-a-library

logging.getLogger("charset_normalizer").addHandler(logging.NullHandler())
</pre></body></html>