Automic VaultAutomic Vault

brew

Install cython with Homebrew, apk, apt, dnf, pacman

Compiler for writing C extensions for the Python language. Version 3.2.8 via Homebrew; verified 2026-07-01.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install cython

local Homebrew formula metadata

Linux

Alpine Linux apkverified · 92%
sudo apk add cython

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

Debian aptverified · 92%
sudo apt install cython-doc

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

Fedora dnfverified · 92%
sudo dnf install python3-cython

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

Arch Linux pacmanverified · 92%
sudo pacman -S cython

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

overview

Package summary

Compiler for writing C extensions for the Python language

Commands and aliases

  • cygdb
  • cython
  • cythonize

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

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

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
cygdbcliglobal executable
cythoncliglobal executable
cythonizecliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version3.2.8
manager updated2026-07-01
local dataok
upstreamnot checked
latest detectednot detected

https://cython.org/

  • infoRelease/tag comparison is only available for GitHub repositories.https://cython.org/none confidence

install metadata

Package metadata

Package keybrew:cython
Version3.2.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/cython
Homepagehttps://cython.org/
Repositoryhttps://github.com/cython/cython
Upstream docshttps://cython.org/
LicenseApache-2.0
Source archivehttps://files.pythonhosted.org/packages/b6/6b/80101e02ebacaf9232ecf32bf6a788d36b27d820ee02434746252569ef98/cython-3.2.8.tar.gz
Last updated2026-07-01T09:53:57Z
Pulseupdated
Dependenciespython@3.14
Build dependenciespython-setuptools
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

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 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 3 optional deps
  • normalized package name match
  • Matched by: 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 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: 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
  • Matched by: 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 dependencies
  • normalized package name match
  • Matched by: 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.4-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 dependencies
  • 11 provides
  • normalized package name match
  • Matched by: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

cython 3.2.5-1

C-Extensions for Python

https://cython.org

sudo pacman -S cython
  • License: Apache-2.0
  • Architecture: x86_64
  • 5 dependencies
  • normalized package name match
  • Matched by: 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

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • 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