
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
.. image:: https://img.shields.io/travis/chardet/chardet/stable.svg :alt: Build status :target: https://travis-ci.org/chardet/chardet
.. image:: https://img.shields.io/coveralls/chardet/chardet/stable.svg :target: https://coveralls.io/r/chardet/chardet
.. image:: https://img.shields.io/pypi/v/chardet.svg :target: https://warehouse.python.org/project/chardet/ :alt: Latest version on PyPI
.. image:: https://img.shields.io/pypi/l/chardet.svg :alt: License
Detects
.. note:: Our ISO-8859-2 and windows-1250 (Hungarian) probers have been temporarily disabled until we can retrain the models.
Requires Python 3.7+.
Install from PyPI <https://pypi.org/project/chardet/>
_::
pip install chardet
For users, docs are now available at https://chardet.readthedocs.io/.
chardet comes with a command-line script which reports on the encodings of one or more files::
% chardetect somefile someotherfile
somefile: windows-1252 with confidence 0.5
someotherfile: ascii with confidence 1.0
This is a continuation of Mark Pilgrim's excellent original chardet port from C, and Ian Cordasco <https://github.com/sigmavirus24>
's
charade <https://github.com/sigmavirus24/charade>
Python 3-compatible fork.
:maintainer: Dan Blanchard
FAQs
Universal encoding detector for Python 3
We found that chardet demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.