# Installer chardet avec Homebrew, apt

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de chardet pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:chardet
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install chardet
```

  Preuve: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install python-chardet-doc
```

  Preuve: Debian stable package indexes: python-chardet-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## Faits du paquet

- **Clé du paquet:** brew:chardet
- **Gestionnaire de paquets:** Homebrew
- **Version:** 7.4.3
- **Résumé source:** Python character encoding detector
- **Page d'accueil:** <https://chardet.readthedocs.io/en/latest/>
- **Dernière mise à jour:** 2026-07-19T07:40:16-04:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- chardetect (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 7.4.3
## Historique du projet et usages

chardet is Python's long-running universal character encoding detector, exposed as both a library and the `chardetect` command-line tool.

### Historique du projet

The official README says Mark Pilgrim originally created chardet in 2006 as a Python port of Mozilla's universal charset detection library. After Pilgrim disappeared from the web in 2011, maintenance continued under later Python maintainers.

### Historique d'adoption

chardet became a standard dependency in Python text-processing stacks because it solved the practical problem of guessing encodings for unknown byte streams. The supplied package facts show Homebrew packaging plus Debian and Ubuntu documentation packages, while the README documents normal installation with `pip install chardet`.

### Modes d'utilisation

Users call `chardet.detect`, `detect_all`, or `UniversalDetector` from Python, or run `chardetect` on files or stdin to print a guessed encoding and confidence.

### Pourquoi les passionnés de paquets s'y intéressent

chardet is package-nerd significant because it sits at the messy boundary between package metadata, HTTP downloads, archives, and text decoding. It is also notable for a 2026 chardet 7 rewrite that kept the package name and public API while changing implementation and license.

### Chronologie

- 2006: Mark Pilgrim created chardet as a Python port of Mozilla's universal charset detector.
- 2008: chardet 1.0.1 released on PyPI according to the official README history.
- 2011: Project maintenance continued after Pilgrim deleted his online accounts.
- 2012: chardet/chardet public GitHub repository created.
- 2017: chardet 3.0.x releases published on GitHub.
- 2026: chardet 7.0 released as a ground-up 0BSD-licensed rewrite under the same package name.

### Related projects

- Mozilla's universal charset detection library is the upstream idea chardet originally ported.
- charset-normalizer is a related Python encoding detector compared directly in the chardet 7 README.

### Sources

- <https://github.com/chardet/chardet#readme>
- <https://chardet.readthedocs.io/en/latest>
- <https://www-archive.mozilla.org/projects/intl/chardet.html>
- <https://formulae.brew.sh/formula/chardet>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - python-chardet-doc - 5.2.0+dfsg-2: normalized package name match | Debian stable package indexes: python-chardet-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Universal Character Encoding Detector (Documentation) | https://github.com/chardet/chardet
- Debian apt - python3-chardet - 5.2.0+dfsg-2: normalized package name match | Debian stable package indexes: python3-chardet from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Universal Character Encoding Detector (Python3) | https://github.com/chardet/chardet
- Ubuntu apt - python-chardet-doc - 5.2.0+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python-chardet-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Universal Character Encoding Detector (Documentation) | https://github.com/chardet/chardet
- Ubuntu apt - python3-chardet - 5.2.0+dfsg-1: normalized package name match | Ubuntu 24.04 LTS package indexes: python3-chardet from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | Universal Character Encoding Detector (Python3) | https://github.com/chardet/chardet


## Combined YAML source

View the package source record on GitHub. [combined/chardet.yml](https://github.com/mxcl/pkgdb/blob/main/combined/chardet.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
