mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 21:51:14 -07:00
* Bump requests from 2.27.1 to 2.28.1 Bumps [requests](https://github.com/psf/requests) from 2.27.1 to 2.28.1. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.27.1...v2.28.1) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update requests==2.28.1 * Update urllib3==1.26.12 * Update certifi==2022.9.24 * Update idna==3.4 * Update charset-normalizer==2.1.1 Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
56 lines
1.7 KiB
Python
56 lines
1.7 KiB
Python
# -*- coding: utf-8 -*-
|
||
"""
|
||
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:
|
||
>>> from charset_normalizer import from_bytes
|
||
>>> results = from_bytes('Bсеки човек има право на образование. Oбразованието!'.encode('utf_8'))
|
||
>>> best_guess = results.best()
|
||
>>> str(best_guess)
|
||
'Bсеки човек има право на образование. Oбразованието!'
|
||
|
||
Others methods and usages are available - see the full documentation
|
||
at <https://github.com/Ousret/charset_normalizer>.
|
||
:copyright: (c) 2021 by Ahmed TAHRI
|
||
:license: MIT, see LICENSE for more details.
|
||
"""
|
||
import logging
|
||
|
||
from .api import from_bytes, from_fp, from_path, normalize
|
||
from .legacy import (
|
||
CharsetDetector,
|
||
CharsetDoctor,
|
||
CharsetNormalizerMatch,
|
||
CharsetNormalizerMatches,
|
||
detect,
|
||
)
|
||
from .models import CharsetMatch, CharsetMatches
|
||
from .utils import set_logging_handler
|
||
from .version import VERSION, __version__
|
||
|
||
__all__ = (
|
||
"from_fp",
|
||
"from_path",
|
||
"from_bytes",
|
||
"normalize",
|
||
"detect",
|
||
"CharsetMatch",
|
||
"CharsetMatches",
|
||
"CharsetNormalizerMatch",
|
||
"CharsetNormalizerMatches",
|
||
"CharsetDetector",
|
||
"CharsetDoctor",
|
||
"__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())
|