Automic VaultAutomic Vault

brew

使用 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

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
chardetectcli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-07-08
管理器版本7.4.3
管理器更新时间2026-04-14
本地数据OK
上游not checked
检测到的最新版本未检测到

https://chardet.readthedocs.io/en/latest/

安装元数据

软件包元数据

软件包键brew:chardet
版本7.4.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/chardet
主页https://chardet.readthedocs.io/en/latest/
仓库https://github.com/chardet/chardet
上游文档https://chardet.readthedocs.io/en/latest
许可证LGPL-2.1-or-later
源码归档https://files.pythonhosted.org/packages/19/b6/9df434a8eeba2e6628c465a1dfa31034228ef79b26f76f46278f4ef7e49d/chardet-7.4.3.tar.gz
最后更新2026-04-14T23:36:27Z
Pulseupdated
依赖python@3.14
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namechardet
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 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
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment