pkg.soopen package index

brew / 排名 3420

使用 Homebrew, apt 安装 chardet

查看 chardet 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install chardet

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install python-chardet-doc

Debian stable package indexes · python-chardet-doc · 来源: deb.debian.org

概览

软件包摘要

Python character encoding detector

命令和别名

  • chardetect

历史

项目历史与用法

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

项目历史

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.

采用历史

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`.

使用方式

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

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chardetect可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本7.4.3
管理器更新时间2026-07-19
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:chardet
版本7.4.3
软件包管理器Homebrew
主页https://chardet.readthedocs.io/en/latest/
最后更新2026-07-19T07:40:16-04:00
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

python-chardet-doc 5.2.0+dfsg-2

Universal Character Encoding Detector (Documentation)

https://github.com/chardet/chardet

sudo apt install python-chardet-doc
  • Section: doc
  • Architecture: all
  • Source Package: chardet
  • 2 依赖
  • normalized package name match
  • 匹配方式:Chardet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python-chardet-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-chardet 5.2.0+dfsg-2

Universal Character Encoding Detector (Python3)

https://github.com/chardet/chardet

sudo apt install python3-chardet
  • Section: python
  • Architecture: all
  • Source Package: chardet
  • 1 依赖
  • normalized package name match
  • 匹配方式:Chardet
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-chardet from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

python-chardet-doc 5.2.0+dfsg-1

Universal Character Encoding Detector (Documentation)

https://github.com/chardet/chardet

sudo apt install python-chardet-doc
  • Section: doc
  • Architecture: all
  • Source Package: chardet
  • 2 依赖
  • normalized package name match
  • 匹配方式:Chardet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python-chardet-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

python3-chardet 5.2.0+dfsg-1

Universal Character Encoding Detector (Python3)

https://github.com/chardet/chardet

sudo apt install python3-chardet
  • Section: python
  • Architecture: all
  • Source Package: chardet
  • 2 依赖
  • normalized package name match
  • 匹配方式:Chardet
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-chardet from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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