macOS
brew install cythonlocal Homebrew formula metadata
安装
brew install cythonlocal Homebrew formula metadata
sudo apk add cythonAlpine Linux edge package indexes · cython · 来源: dl-cdn.alpinelinux.org
sudo pacman -S cythonArch Linux sync databases · cython · 来源: geo.mirror.pkgbuild.com
sudo apt install cython-docDebian stable package indexes · cython-doc · 来源: deb.debian.org
sudo dnf install python3-cythonFedora Rawhide package metadata · python3-cython · 来源: dl.fedoraproject.org
概览
Compiler for writing C extensions for the Python language
历史
Cython is an optimizing static compiler for Python and the extended Cython language. It translates Python-like code to C or C++ so developers can write CPython extension modules, wrap native libraries, and tune performance without abandoning Python syntax.
The official Cython README says Cython was originally based on Greg Ewing's Pyrex and started as an early-2000s project. Cython kept the Python-extension-module idea but grew into a long-lived compiler with its own language features, type declarations, C/C++ interop, and CPython-version adaptation.
The official site describes Cython as a superset of Python that supports C/C++ functions and types, allowing generated C code to be compiled with major C/C++ compilers. The project repository was created on GitHub in 2010 and remains the active source for compiler, docs, and tooling.
Cython became common infrastructure in the scientific Python and performance-sensitive Python ecosystem because it lets projects ship fast extension modules while retaining a Python-like development model. The official README states that Cython has more than 70 million PyPI downloads per month, which reflects broad use as a build-time dependency as well as a developer tool.
Users install Cython, write .pyx modules or use pure-Python annotation mode, and run cython or cythonize to generate C/C++ code for extension builds. Common uses include wrapping external C libraries, optimizing numerical loops, interacting with NumPy arrays, embedding CPython, and maintaining generated C sources for reproducible builds.
Cython matters to package nerds because it sits at the boundary between source packages and compiled artifacts. A missing or mismatched Cython can decide whether a Python package builds from sdist, ships generated C, or requires wheels; it is one of the quiet tools behind many fast Python libraries.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
cygdb | cli | 全局可执行文件 | |
cython | cli | 全局可执行文件 | |
cythonize | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:cython |
|---|---|
| 版本 | 3.2.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/cython |
| 主页 | https://cython.org/ |
| 仓库 | https://github.com/cython/cython |
| 上游文档 | https://cython.org/ |
| 许可证 | Apache-2.0 |
| 源码归档 | https://files.pythonhosted.org/packages/b6/6b/80101e02ebacaf9232ecf32bf6a788d36b27d820ee02434746252569ef98/cython-3.2.8.tar.gz |
| 最后更新 | 2026-07-01T09:53:57Z |
| Pulse | updated |
| 依赖 | python@3.14 |
| 构建依赖 | python-setuptools |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | cython |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cython-doc 3.0.11+dfsg-2
C-Extensions for Python 3 (Documentation)
sudo apt install cython-doccython3 3.0.11+dfsg-2+b1
C-Extensions for Python 3
sudo apt install cython3cython-doc 3.0.8-1ubuntu3
C-Extensions for Python - documentation
sudo apt install cython-doccython3 3.0.8-1ubuntu3
C-Extensions for Python 3
sudo apt install cython3cython 3.2.4-r2
Cython is an optimising static compiler for both the Python & the extended Cython programming languages.
sudo apk add cythoncython-doc 3.2.4-r2
Cython is an optimising static compiler for both the Python & the extended Cython programming languages. (documentation)
sudo apk add cython-doccython-pyc 3.2.4-r2
Precompiled Python bytecode for cython
sudo apk add cython-pycpython3-cython 3.2.4-4.fc45
Language for writing Python extension modules
sudo dnf install python3-cythoncython 3.2.5-1
C-Extensions for Python
sudo pacman -S cython来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.