pkg.soopen package index

brew / 排名 1361

使用 Homebrew, apk, pacman, apt, dnf 安装 cython

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install cython

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add cython

Alpine Linux edge package indexes · cython · 来源: dl-cdn.alpinelinux.org

Arch Linux pacman已验证 · 92%
sudo pacman -S cython

Arch Linux sync databases · cython · 来源: geo.mirror.pkgbuild.com

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

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

Fedora dnf已验证 · 92%
sudo dnf install python3-cython

Fedora Rawhide package metadata · python3-cython · 来源: dl.fedoraproject.org

概览

软件包摘要

Compiler for writing C extensions for the Python language

命令和别名

  • cygdb
  • cython
  • cythonize

历史

项目历史与用法

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.

时间线

  • Early 2000s: Cython starts as a project based on Pyrex.
  • 2010: cython/cython repository created on GitHub.
  • 2011: Official site links the IEEE article 'Cython: The best of both worlds'.
  • 2025: Official site lists Cython 3.1.4 as a stable release.
  • 2026: GitHub releases show ongoing 3.2.x and 3.3.0 alpha development.

Related projects

  • Pyrex is the predecessor named by the official README.
  • CPython is the primary runtime and C API target.
  • NumPy, PyPy, Pythran, mypyc, Nuitka, and Numba are related ecosystems or comparison points listed in official Cython materials.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

安装元数据

软件包元数据

软件包键brew:cython
版本3.2.9
软件包管理器Homebrew
主页https://cython.org/
仓库https://github.com/cython/cython
最后更新2026-07-25T10:55:22Z
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

cython-doc 3.0.11+dfsg-2

C-Extensions for Python 3 (Documentation)

http://cython.org/

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

cython3 3.0.11+dfsg-2+b1

C-Extensions for Python 3

http://cython.org/

sudo apt install cython3
  • Section: python
  • Architecture: amd64
  • Source Package: cython
  • 2 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Debian stable package indexes · deb.debian.org · Debian stable package indexes: cython3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

cython-doc 3.0.8-1ubuntu3

C-Extensions for Python - documentation

http://cython.org/

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

cython3 3.0.8-1ubuntu3

C-Extensions for Python 3

http://cython.org/

sudo apt install cython3
  • Section: universe/python
  • Architecture: amd64
  • Source Package: cython
  • 2 依赖
  • 3 可选依赖
  • normalized package name match
  • 匹配方式:Cython
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: cython3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

cython 3.2.4-r2

Cython is an optimising static compiler for both the Python & the extended Cython programming languages.

https://cython.org/

sudo apk add cython
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cython-doc 3.2.4-r2

Cython is an optimising static compiler for both the Python & the extended Cython programming languages. (documentation)

https://cython.org/

sudo apk add cython-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

cython-pyc 3.2.4-r2

Precompiled Python bytecode for cython

https://cython.org/

sudo apk add cython-pyc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: cython
  • 1 依赖
  • normalized package name match
  • 匹配方式:Cython
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: cython-pyc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

python3-cython 3.2.8-4.fc45

Language for writing Python extension modules

http://www.cython.org

sudo dnf install python3-cython
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: Cython
  • 4 依赖
  • 11 提供
  • normalized package name match
  • 匹配方式:Cython
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-cython from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
pacman95%

cython 3.2.9-1

C-Extensions for Python

https://cython.org

sudo pacman -S cython
  • License: Apache-2.0
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Cython
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: cython from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.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